blob: a0a4d00ecc3c22e8565c8e8a7f0e7c161553075d (
plain)
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
|
project(sim)
add_library(
${PROJECT_NAME} STATIC
src/BaseSimulation.cpp
src/Builder.cpp
src/FloatingMovement.cpp
src/HitPoints.cpp
src/RandomSpawner.cpp
src/sim.cpp
src/systems.cpp
src/TeamManager.cpp
src/TurretControl.cpp
)
target_include_directories(
${PROJECT_NAME}
PUBLIC include
)
target_link_libraries(
${PROJECT_NAME}
PUBLIC EnTT::EnTT
PUBLIC campaign
PUBLIC engine
PRIVATE stats
PUBLIC universe
)
add_executable(
${PROJECT_NAME}_test
tests/HitPoints.cpp
)
target_link_libraries(
${PROJECT_NAME}_test
PRIVATE ${PROJECT_NAME}
PRIVATE GTest::gtest_main
PRIVATE universe
)
gtest_discover_tests(${PROJECT_NAME}_test)
|