-
Notifications
You must be signed in to change notification settings - Fork 23
/
CMakeLists.txt
62 lines (51 loc) · 1.14 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
cmake_minimum_required(VERSION 3.0)
# Project
project(Stronghold VERSION 0.1.2)
include(cmake/Preamble.cmake)
add_subdirectory(apple)
add_subdirectory(src)
if(SOURCEHOLD_BUILD_TESTS MATCHES ON)
add_subdirectory(test)
endif()
# TODO(seidl):
# still some modules hidden here..
set(SOURCE_FILES
src/Assets.h
src/Assets.cpp
src/Building.h
src/Building.cpp
src/Game.cpp
src/GameManager.h
src/GameManager.cpp
src/GameMap.h
src/GameMap.cpp
src/Startup.h
src/Startup.cpp
src/World.h
src/World.cpp
)
add_executable(${PROJECT_NAME} ${SOURCE_FILES})
source_group("Source Files" FILES ${SOURCE_FILES})
target_include_directories(${PROJECT_NAME}
PRIVATE src/
)
if(TARGET_OS_MAC_OS OR TARGET_OS_IOS)
target_link_libraries(${PROJECT_NAME}
PRIVATE AppleUtils
)
endif() #TARGET_OS_MAC_OS OR TARGET_OS_IOS
if(TARGET_OS_IOS)
include(apple/cmake/MakeiOSAppBundleAndLinkFrameworks.cmake)
endif() # TARGET_OS_IOS
target_link_libraries(${PROJECT_NAME}
PRIVATE Threads::Threads
PRIVATE Rendering
PRIVATE cxxopts
PRIVATE ECS
PRIVATE System
PRIVATE Audio
PRIVATE GUI
PRIVATE Events
PRIVATE Parsers
PRIVATE ProjectOptions
)