changed to single build directory and now using debug and build sh scripts

pull/2/head
Sara 2023-05-05 23:19:02 +02:00
parent 3a4c037aa7
commit 851714810c
4 changed files with 8 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
# build dirs # build dirs
bin/ bin/
release/ release/
build/
debug/ debug/
# clangd cache # clangd cache

View File

@ -30,4 +30,4 @@ add_executable(${PROJECT}
target_link_libraries(${PROJECT} SDL2 SDL2_image SDL2_ttf) 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")

3
debug Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Debug && cmake --build build && lldb bin/sim-game -o r -b

3
release Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build && bin/sim-game