-
Notifications
You must be signed in to change notification settings - Fork 16
/
CMakeLists.txt
27 lines (19 loc) · 1.02 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
cmake_minimum_required(VERSION 3.10)
set(CMAKE_CXX_STANDARD 17)
#Let the MSVC compiler flags be set by the abstraction
#For more details, see https://cmake.org/cmake/help/latest/policy/CMP0091.html
cmake_policy(SET CMP0091 NEW)
# set the project name
project(Physics)
if(CMAKE_CONFIGURATION_TYPES)
list(APPEND CMAKE_CONFIGURATION_TYPES RelProfile)
list(REMOVE_DUPLICATES CMAKE_CONFIGURATION_TYPES)
set(CMAKE_CONFIGURATION_TYPES ${CMAKE_CONFIGURATION_TYPES}
CACHE STRING "Append user-defined configuration to list of configurations to make it usable in Visual Studio" FORCE)
endif()
set(CMAKE_C_FLAGS_RELPROFILE "${CMAKE_C_FLAGS_RELWITHDEBINFO}" CACHE STRING "Set RelProfile flags" FORCE)
set(CMAKE_CXX_FLAGS_RELPROFILE "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}" CACHE STRING "Set RelProfile flags" FORCE)
set(CMAKE_EXE_LINKER_FLAGS_RELPROFILE "${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO}" CACHE STRING "Set RelProfile flags" FORCE)
add_subdirectory(Editor Editor)
add_subdirectory(Testing Test)
add_subdirectory(tools/tracy TracyServer)