15 lines
900 B
CMake
15 lines
900 B
CMake
# Optional CMake wiring for the game_data tests; the canonical runner is
|
|
# build_and_run.sh (plain g++). Include from the root with
|
|
# add_subdirectory(tests/game_data) after add_subdirectory(src/game/data).
|
|
add_executable(game_data_unit_tests
|
|
test_main.cpp test_weapon.cpp test_shipsection.cpp test_turrets.cpp test_techtree.cpp test_catalog.cpp)
|
|
target_link_libraries(game_data_unit_tests PRIVATE game_data)
|
|
target_include_directories(game_data_unit_tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
|
add_test(NAME game_data_unit COMMAND game_data_unit_tests)
|
|
|
|
add_executable(game_data_realdata_test realdata_test.cpp)
|
|
target_link_libraries(game_data_realdata_test PRIVATE game_data)
|
|
add_test(NAME game_data_realdata COMMAND game_data_realdata_test) # SKIPs without SOTS_DATA_DIR
|
|
|
|
add_executable(game_data_dump_catalog dump_catalog.cpp)
|
|
target_link_libraries(game_data_dump_catalog PRIVATE game_data)
|