blob: 9d24182e8d7f96e1ed04a1b8986b11de6c3fb0a1 (
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
|
project(sim)
add_library(
${PROJECT_NAME} STATIC
src/BaseBattle.cpp
src/Battle.cpp
src/Builder.cpp
src/FloatingMovement.cpp
src/HitPoints.cpp
src/RandomSpawner.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)
|