| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- # Test suite for Standard of Iron
- # Uses Google Test framework
- # Test executable
- add_executable(standard_of_iron_tests
- core/serialization_test.cpp
- core/ground_type_test.cpp
- db/save_storage_test.cpp
- db/mission_progress_test.cpp
- map/minimap_generator_test.cpp
- map/minimap_utils_test.cpp
- map/mission_loader_test.cpp
- map/campaign_loader_test.cpp
- systems/rain_manager_test.cpp
- systems/patrol_system_test.cpp
- systems/formation_system_test.cpp
- systems/guard_system_test.cpp
- systems/stamina_system_test.cpp
- systems/building_collision_test.cpp
- systems/combat_mode_test.cpp
- systems/archer_bonus_test.cpp
- render/pose_controller_test.cpp
- render/pose_controller_compatibility_test.cpp
- render/mounted_pose_controller_test.cpp
- render/body_frames_test.cpp
- render/equipment_registry_test.cpp
- render/helmet_renderers_test.cpp
- render/armor_renderer_test.cpp
- render/horse_animation_controller_test.cpp
- render/rider_proportions_test.cpp
- render/horse_equipment_renderers_test.cpp
- render/spawn_validator_test.cpp
- render/battle_render_optimizer_test.cpp
- test_main.cpp
- )
- # Link against GTest, project libraries
- target_link_libraries(standard_of_iron_tests
- PRIVATE
- GTest::gtest
- GTest::gmock
- Qt${QT_VERSION_MAJOR}::Core
- Qt${QT_VERSION_MAJOR}::Gui
- Qt${QT_VERSION_MAJOR}::Sql
- engine_core
- render_gl
- game_systems
- )
- # Include directories
- target_include_directories(standard_of_iron_tests
- PRIVATE
- ${CMAKE_SOURCE_DIR}
- ${CMAKE_SOURCE_DIR}/game
- )
- # Add tests to CTest
- include(GoogleTest)
- gtest_discover_tests(standard_of_iron_tests)
- # Set output directory
- set_target_properties(standard_of_iron_tests PROPERTIES
- RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
- )
|