forked from jgs03177/sc2combatsim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (31 loc) · 1.16 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
cmake_minimum_required (VERSION 3.15)
#cmake_policy(SET CMP0091 NEW)
project (SC2CombatSim CXX)
set(SC2CombatSim_VERSION_MAJOR 0)
set(SC2CombatSim_VERSION_MINOR 1)
set(PATH_MAPS "${PROJECT_SOURCE_DIR}/maps/")
set(PATH_CONFIG "${PROJECT_SOURCE_DIR}/config/")
set(PATH_OUTPUT "${PROJECT_SOURCE_DIR}/output/")
configure_file(
"${PROJECT_SOURCE_DIR}/cmake/ProjectConfig.h.in"
"${PROJECT_BINARY_DIR}/generated/ProjectConfig.h"
)
#if (MSVC)
#message(STATUS
# "MSVC -> forcing use of dynamically-linked runtime."
#)
#if (NOT MT_MSVC)
#config yourself.
#set(CMAKE_CXX_FLAGS_DEBUG "/MTd ${CMAKE_CXX_FLAGS_DEBUG}" CACHE STRING "" FORCE)
#set(CMAKE_CXX_FLAGS_MINSIZEREL "/MT ${CMAKE_CXX_FLAGS_MINSIZEREL}" CACHE STRING "" FORCE)
#set(CMAKE_CXX_FLAGS_RELEASE "/MT ${CMAKE_CXX_FLAGS_RELEASE}" CACHE STRING "" FORCE)
#set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/MT ${CMAKE_CXX_FLAGS_RELWITHDEBINFO}" CACHE STRING "" FORCE)
#set(MT_MSVC 1 CACHE BOOL "" FORCE)
#endif()
#else()
# set(CMAKE_CXX_FLAGS "-fpermissive")
#endif()
# Build with c++17 support.
set(CMAKE_CXX_STANDARD 17)
include_directories("${PROJECT_BINARY_DIR}/generated")
add_subdirectory(src)