-
Notifications
You must be signed in to change notification settings - Fork 18
/
CMakeLists.txt
39 lines (32 loc) · 996 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
36
37
38
39
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} -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 -O2")
endif ()
add_subdirectory(simulator)
add_subdirectory(statistics)
add_subdirectory(wow_library)
add_subdirectory(sim_interface)
add_subdirectory(common)
add_subdirectory(item_optimizer)
if (NOT EMSCRIPTEN)
add_subdirectory(local_build)
endif ()
if (EMSCRIPTEN)
add_subdirectory(website)
endif ()