19 lines
607 B
CMake
19 lines
607 B
CMake
# Integration tests CMakeLists.txt
|
|
|
|
# Collect all test source files
|
|
file(GLOB_RECURSE INTEGRATION_TEST_SOURCES "*.cpp" "*.cc" "*.cxx")
|
|
|
|
# Remove main.cpp from the sources list if it exists
|
|
list(REMOVE_ITEM INTEGRATION_TEST_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/main.cpp")
|
|
|
|
# Add integration test sources to the integration_tests executable
|
|
if(INTEGRATION_TEST_SOURCES)
|
|
target_sources(integration_tests PRIVATE ${INTEGRATION_TEST_SOURCES})
|
|
endif()
|
|
|
|
# Example of how to add specific test files:
|
|
# target_sources(integration_tests PRIVATE
|
|
# test_battle_integration.cpp
|
|
# test_full_game_flow.cpp
|
|
# )
|