blob: 4ce91335d1ad264edc95d8390406b87dd403ad9a (
plain) (
blame)
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 (AromatherapyMapEditor)
# Set directory to look for package helpers.
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${AromatherapyMapEditor_SOURCE_DIR}/cmake")
find_package(wxWidgets REQUIRED core base)
include(${wxWidgets_USE_FILE})
find_package(libxml2 REQUIRED)
set(ALL_LIBS
${wxWidgets_LIBRARIES}
${LIBXML2_LIBRARIES}
)
include_directories(
${LIBXML2_INCLUDE_DIR}
src
)
set(CMAKE_BUILD_TYPE Debug)
add_executable(AromatherapyMapEditor
src/main.cpp
src/map.cpp
src/frame.cpp
src/widget.cpp
src/tile_widget.cpp
src/object.cpp
src/world.cpp
src/undo.cpp
src/mapselect_combo.cpp
)
set_property(TARGET AromatherapyMapEditor PROPERTY CXX_STANDARD 11)
set_property(TARGET AromatherapyMapEditor PROPERTY CXX_STANDARD_REQUIRED ON)
target_link_libraries(AromatherapyMapEditor ${ALL_LIBS})
|