forked from TheGroxEmpire/TBC_DPS_Warrior_Sim
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
35 lines (29 loc) · 956 Bytes
/
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
cmake_minimum_required(VERSION 3.14)
set(CMAKE_CXX_STANDARD 17)
project(wow_simulator)
include(FetchContent)
if (NOT EMSCRIPTEN)
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG release-1.10.0
)
FetchContent_MakeAvailable(googletest)
enable_testing()
endif ()
if (CMAKE_BUILD_TYPE MATCHES Debug)
message("Building ${CMAKE_PROJECT_NAME} in Debug mode")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTEST_VIA_CONFIG -Wall -Wextra -Werror -Wunused -std=c++17 -pedantic")
else ()
message("Building ${CMAKE_PROJECT_NAME} in Release mode")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -O3 -flto")
endif ()
add_subdirectory(simulator)
add_subdirectory(statistics)
add_subdirectory(wow_library)
add_subdirectory(sim_interface)
add_subdirectory(common)
add_subdirectory(item_optimizer)
if (EMSCRIPTEN)
add_subdirectory(website)
endif ()