-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
37 lines (33 loc) · 911 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
cmake_minimum_required (VERSION 3.1)
project (ap_wizard)
if (MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
set(CMAKE_WIN32_EXECUTABLE true)
endif(MSVC)
find_package(wxWidgets CONFIG REQUIRED)
find_package(yaml-cpp REQUIRED)
include_directories(
vendor/nlohmann
vendor/whereami
${yaml-cpp_INCLUDE_DIRS}
)
add_executable(ap_wizard
src/main.cc
src/wizard_frame.cc
src/game_definition.cc
src/world_window.cc
src/world.cc
src/wizard_editor.cc
src/yaml_editor.cc
src/random_choice_dialog.cc
src/random_range_dialog.cc
src/util.cc
src/option_set_dialog.cc
src/filterable_item_picker.cc
src/item_dict_dialog.cc
src/numeric_picker.cc
vendor/whereami/whereami.c
)
set_property(TARGET ap_wizard PROPERTY CXX_STANDARD 20)
set_property(TARGET ap_wizard PROPERTY CXX_STANDARD_REQUIRED ON)
target_link_libraries(ap_wizard PRIVATE wx::core wx::base wx::stc yaml-cpp::yaml-cpp)