diff options
author | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-04 18:36:24 +0100 |
---|---|---|
committer | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-04 18:36:24 +0100 |
commit | 87fdac7918d776a4c11b3880eef64b09b334aa1c (patch) | |
tree | e75456587f3a5697d093240b739d8cc5c1025829 /CMakeLists.txt | |
parent | 9ab3c2b88edf48f6e215d940a43dc75fad7a977b (diff) |
linux build config and imgs
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 73 |
1 files changed, 37 insertions, 36 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b91379d..46d9277 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,36 +1,37 @@ -cmake_minimum_required(VERSION 3.16)
-project(sdl_test VERSION 1.0.0)
-
-set(CMAKE_CXX_STANDARD 11)
-set(CMAKE_CXX_STANDARD_REQUIRED YES)
-set(CMAKE_CXX_EXTENSIONS OFF)
-
-set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/build)
-
-add_executable(sdl_test
- main.cpp
- graphics/graphics.cpp graphics/graphics.h
- graphics/cam.h
- commands/commands.cpp commands/commands.h
- timing/timing.cpp timing/timing.h
- game/entity.cpp game/entity.h
- game/ground.cpp game/ground.h
- game/playercontrol.cpp game/playercontrol.h
- game/gst.cpp game/gst.h
- game/view.cpp game/view.h
- game/menu.cpp game/menu.h
- game/tile.cpp game/tile.h
- game/load.cpp game/load.h
- game/tech.cpp game/tech.h
- game/player.h
- game/constants.h
- game/ai/action.cpp game/ai/action.h
- game/ai/generator.h
- game/ai/engine.h
- game/ai/evaluator.h
- game/ai/tactic.h
- umath/vec2.h)
-
-target_include_directories(sdl_test PUBLIC "C:/MinGW_libs/include")
-target_link_libraries(sdl_test -LC:/MinGW_libs/lib)
-target_link_libraries(sdl_test -lSDL2main -lSDL2)
\ No newline at end of file +cmake_minimum_required(VERSION 3.16) +project(sdl_test VERSION 1.0.0) + +set(CMAKE_CXX_STANDARD 20) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_BUILD_TYPE debug) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20") + +set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/build) + +add_executable(sdl_test + main.cpp + graphics/graphics.cpp graphics/graphics.h + graphics/cam.h + commands/commands.cpp commands/commands.h + timing/timing.cpp timing/timing.h + game/entity.cpp game/entity.h + game/ground.cpp game/ground.h + game/playercontrol.cpp game/playercontrol.h + game/gst.cpp game/gst.h + game/view.cpp game/view.h + game/menu.cpp game/menu.h + game/tile.cpp game/tile.h + game/load.cpp game/load.h + game/tech.cpp game/tech.h + game/player.h + game/constants.h + game/ai/action.cpp game/ai/action.h + game/ai/generator.h + game/ai/engine.h + game/ai/evaluator.h + game/ai/tactic.h + umath/vec2.h) + +target_include_directories(sdl_test PUBLIC "/usr/local/include") +target_link_libraries(sdl_test -L/usr/local/libs) +target_link_libraries(sdl_test -lSDL2main -lSDL2) |