2022-11-28 00:48:46 +00:00
|
|
|
SET(DGAMEMESSAGES_TESTS
|
2023-08-04 02:27:40 +00:00
|
|
|
"GameMessageTests.cpp"
|
|
|
|
"LegacyGameMessageTests.cpp")
|
2022-11-28 00:48:46 +00:00
|
|
|
|
|
|
|
# Get the folder name and prepend it to the files above
|
|
|
|
get_filename_component(thisFolderName ${CMAKE_CURRENT_SOURCE_DIR} NAME)
|
|
|
|
list(TRANSFORM DGAMEMESSAGES_TESTS PREPEND "${thisFolderName}/")
|
|
|
|
|
2023-02-14 02:55:44 +00:00
|
|
|
# Copy test files to testing directory
|
|
|
|
add_subdirectory(TestBitStreams)
|
|
|
|
list(TRANSFORM GAMEMESSAGE_TESTBITSTREAMS PREPEND "${thisFolderName}/")
|
|
|
|
set(GAMEMESSAGE_TESTBITSTREAMS ${GAMEMESSAGE_TESTBITSTREAMS} PARENT_SCOPE)
|
|
|
|
|
2022-11-28 00:48:46 +00:00
|
|
|
# Export to parent scope
|
|
|
|
set(DGAMEMESSAGES_TESTS ${DGAMEMESSAGES_TESTS} PARENT_SCOPE)
|