2022-11-07 08:12:35 +00:00
|
|
|
set(DCOMPONENTS_TESTS
|
|
|
|
"DestroyableComponentTests.cpp"
|
2024-01-08 23:32:09 +00:00
|
|
|
"PetComponentTests.cpp"
|
2023-10-09 20:19:38 +00:00
|
|
|
"SimplePhysicsComponentTests.cpp"
|
2024-11-18 00:27:33 +00:00
|
|
|
"SavingTests.cpp"
|
2022-11-07 08:12:35 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# 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)
|
2024-11-18 00:27:33 +00:00
|
|
|
|
|
|
|
# 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)
|