-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
44 lines (31 loc) · 950 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
40
41
42
43
44
cmake_minimum_required(VERSION 3.14)
project(evolution_simulator_2)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
# Add evolution simulator headers and sources
add_subdirectory(include)
add_subdirectory(src)
# Pass evolution simulator headers to fug for component / singleton scanning
set(FUG_APP_HEADERS ${EVOLUTION_SIMULATOR_HEADERS})
# Fetch external dependencies
add_subdirectory(ext)
# Add evolution simulator executable target
add_executable(evolution_simulator
${EVOLUTION_SIMULATOR_HEADERS}
${EVOLUTION_SIMULATOR_SOURCES}
)
target_include_directories(evolution_simulator
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
)
target_compile_definitions(evolution_simulator
PUBLIC
EVOLUTION_SIMULATOR_RES_DIR="${CMAKE_CURRENT_SOURCE_DIR}/res/"
)
target_link_libraries(evolution_simulator
PUBLIC
fug_ecs
fug_engine
fug_graphics
)