mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-11 01:48:07 +00:00
27 lines
866 B
CMake
27 lines
866 B
CMake
set(DCOMPONENTS_TESTS
|
|
"ActivityComponentTests.cpp"
|
|
"BaseCombatAIComponentTests.cpp"
|
|
"BouncerComponentTests.cpp"
|
|
"CollectibleComponentTests.cpp"
|
|
"DestroyableComponentTests.cpp"
|
|
"HavokVehiclePhysicsComponentTests.cpp"
|
|
"LUPExhibitComponentTests.cpp"
|
|
"ModelComponentTests.cpp"
|
|
"MovingPlatformComponentTests.cpp"
|
|
"PetComponentTests.cpp"
|
|
"SimplePhysicsComponentTests.cpp"
|
|
"SavingTests.cpp"
|
|
)
|
|
|
|
# Get the folder name and prepend it to the files above
|
|
get_filename_component(thisFolderName ${CMAKE_CURRENT_SOURCE_DIR} NAME)
|
|
list(TRANSFORM DCOMPONENTS_TESTS PREPEND "${thisFolderName}/")
|
|
|
|
# Export to parent scope
|
|
set(DCOMPONENTS_TESTS ${DCOMPONENTS_TESTS} PARENT_SCOPE)
|
|
|
|
# Copy test files to testing directory
|
|
add_subdirectory(TestData)
|
|
list(TRANSFORM COMPONENT_TEST_DATA PREPEND "${thisFolderName}/")
|
|
set(COMPONENT_TEST_DATA ${COMPONENT_TEST_DATA} PARENT_SCOPE)
|