diff --git a/.vscode/launch.json b/.vscode/launch.json index a3186194..b807efcc 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,7 +5,7 @@ "name": "C++ Launch (Windows)", "type": "cppvsdbg", "request": "launch", - "program": "${workspaceRoot}/build/bin/game.exe", + "program": "${workspaceRoot}/build/bin/Debug/game.exe", "args": [], "stopAtEntry": false, "cwd": "${workspaceRoot}", diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..9c4a20ae --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "C_Cpp.default.configurationProvider": "vector-of-bool.cmake-tools" +} \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 11ecc01e..289a20d2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,10 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lib) +if (WIN32) + set (CMAKE_C_FLAGS_DEBUG "/MTd /Z7 /Od") +ENDIF () + add_subdirectory(dependencies) set ( SDL2_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/dependencies/SDL/include )