blob: 25e8b168b5ccb722d421715bf2a7011980230cd6 (
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
|
project(universe)
add_library(
${PROJECT_NAME} STATIC
src/JsonRepository.cpp
src/NotFound.cpp
src/TurretType.cpp
src/universe.cpp
)
target_include_directories(
${PROJECT_NAME}
PUBLIC include
)
target_link_libraries(
${PROJECT_NAME}
PRIVATE nlohmann_json::nlohmann_json
)
add_resources(
universe_resources FILES
resources/universe/ship_types.json
resources/universe/turret_types.json
)
add_executable(
${PROJECT_NAME}_test
tests/TurretType.cpp
)
target_link_libraries(
${PROJECT_NAME}_test
PRIVATE ${PROJECT_NAME}
PRIVATE GTest::gtest_main
)
gtest_discover_tests(
${PROJECT_NAME}_test
DISCOVERY_TIMEOUT 60
)
|