forked from Tapsa/AGE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
74 lines (59 loc) · 1.78 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
cmake_minimum_required(VERSION 3.7)
project(AdvancedGenieEditor3)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/)
set(CMAKE_CXX_FLAGS "-Wall -Wno-sign-compare -Wno-parentheses")
set(BOOST_DATE_TIME_NO_LIB ON)
#set(Boost_USE_STATIC_LIBS ON)
#set(Boost_USE_STATIC_RUNTIME ON)
set(Boost_USE_MULTITHREADED ON)
find_package(Boost 1.55 REQUIRED iostreams)
find_package(wxWidgets REQUIRED core base)
include("${wxWidgets_USE_FILE}")
find_package(SFML 2.4 REQUIRED system audio)
set(GUTILS_TOOLS FALSE)
set(GUTILS_TEST FALSE)
include_directories(
${EXTERN_DIR}/genieutils/include
${SFML_INCLUDE_DIR}
${Boost_INCLUDE_DIRS})
add_subdirectory(${EXTERN_DIR}/genieutils extern/genieutils)
set(AGE_SRC Precompile/Common.cpp
#External includes only
CustomWidgets.cpp
DelayedMessageRelay.cpp
SharedComboPopup.cpp
#Internal includes in cpp only
LinkedControl.cpp
OpenSaveDialog.cpp
AboutDialog.cpp
Main.cpp
CustomTextControls.cpp
#Internal includes in headers too
LinkedCheckBox.cpp
CustomComboBoxes.cpp
OpenDialog.cpp
SaveDialog.cpp
Loaders.cpp
Sprites.cpp
AGE_Frame/Civs.cpp
AGE_Frame/General.cpp
AGE_Frame/PlayerColors.cpp
AGE_Frame/Research.cpp
AGE_Frame/TechTrees.cpp
AGE_Frame/TerrainBorders.cpp
AGE_Frame/TerrainRestrictions.cpp
AGE_Frame/UnitLine.cpp
AGE_Frame/Units.cpp
AGE_Frame/Techs.cpp
AGE_Frame/Graphics.cpp
AGE_Frame/Sounds.cpp
AGE_Frame/Terrains.cpp
AGE_Frame/Other.cpp
AGE_Frame/Lists.cpp
AGE_Frame/Animation.cpp
AGE_Frame/Constructor.cpp
Resources.rc
)
find_library(PSAPI psapi)
add_executable(AdvancedGenieEditor3 WIN32 ${AGE_SRC})
target_link_libraries(AdvancedGenieEditor3 ${wxWidgets_LIBRARIES} genieutils ${PSAPI} ${SFML_LIBRARIES})