added and changed build flags for easier building on Windows

This commit is contained in:
devZoGok
2024-06-13 10:50:43 +03:00
parent 3961174b46
commit cb4991d195
+3 -2
View File
@@ -4,9 +4,10 @@ set(GAME_NAME battleship)
project(${GAME_NAME})
set(CMAKE_CXX_STANDART 17)
set(CMAKE_CXX_FLAGS "-std=c++17 -Wpedantic")
set(CMAKE_BUILD_TYPE Debug)
set(BUILD_TESTS ON)
set(BUILD_SHARED_LIBS ON CACHE BOOL FORCED)
set(BUILD_TESTS OFF)
set(BUILD_SHARED_LIBS OFF CACHE BOOL FORCED)
cmake_policy(SET CMP0015 NEW)
set(UNIT_BUTTONS unitButton.cpp tradeButton.cpp buildButton.cpp trainButton.cpp researchButton.cpp)