summaryrefslogtreecommitdiff
path: root/sim/CMakeLists.txt
blob: 9713d96b6c4cfbedaf4b6de00fd2a500f6bdf62e (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
37
38
39
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
	DISCOVERY_TIMEOUT 60
)