From 851714810c1c5127956d30f89d75e7f282fb760f Mon Sep 17 00:00:00 2001 From: Sara Date: Fri, 5 May 2023 23:19:02 +0200 Subject: [PATCH] changed to single build directory and now using debug and build sh scripts --- .gitignore | 1 + CMakeLists.txt | 2 +- debug | 3 +++ release | 3 +++ 4 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 debug create mode 100755 release diff --git a/.gitignore b/.gitignore index e0267df..2e89d55 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # build dirs bin/ release/ +build/ debug/ # clangd cache diff --git a/CMakeLists.txt b/CMakeLists.txt index d5cd436..330f641 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,4 +30,4 @@ add_executable(${PROJECT} target_link_libraries(${PROJECT} SDL2 SDL2_image SDL2_ttf) -target_include_directories(${PROJECT} PRIVATE "${CMAKE_SOURCE_DIR}/include/" "${CMAKE_SOURCE_DIR}/src/sge/") +target_include_directories(${PROJECT} PRIVATE "${CMAKE_SOURCE_DIR}/include/" "${CMAKE_SOURCE_DIR}/src/corelib" "${CMAKE_SOURCE_DIR}/src/ui") diff --git a/debug b/debug new file mode 100755 index 0000000..9b57e31 --- /dev/null +++ b/debug @@ -0,0 +1,3 @@ +#!/bin/sh + +cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Debug && cmake --build build && lldb bin/sim-game -o r -b diff --git a/release b/release new file mode 100755 index 0000000..56a6220 --- /dev/null +++ b/release @@ -0,0 +1,3 @@ +#!/bin/sh + +cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build && bin/sim-game