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