Files
DarkflameServer/tests/dGameTests/dGameMessagesTests/CMakeLists.txt
Aaron Kimbrell b88168f2ed fix: route only the chat messages a client sends
A world server passed every routed packet on to the chat server under
whatever message ID it carried. It now passes on the messages a client
sends, and SHOW_ALL only for the level the showall command needs. The
message ID is read as the full 32 bit number, the packet has to be long
enough to hold a chat packet and the sender needs a character.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-10 16:02:22 -06:00

35 lines
1.1 KiB
CMake

SET(DGAMEMESSAGES_TESTS
"ActivityMessagesTests.cpp"
"BuildingMessagesTests.cpp"
"CombatMessagesTests.cpp"
"GameMessageTests.cpp"
"GameMsgSplitTests.cpp"
"EffectsMessagesTests.cpp"
"InventoryMessagesTests.cpp"
"MissionMessagesTests.cpp"
"PetMessagesTests.cpp"
"PropertyMessagesTests.cpp"
"RacingMessagesTests.cpp"
"RemainingMessagesTests.cpp"
"SkillMessagesTests.cpp"
"UnSmashTests.cpp"
"VendorMessagesTests.cpp"
"LegacyGameMessageTests.cpp"
"GameMessageDecoderTests.cpp"
"HotPropertyMessageTests.cpp"
"ClientMessagesTests.cpp"
"LoadSequenceTests.cpp"
"ChatRoutingTests.cpp")
# 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}/")
# Copy test files to testing directory
add_subdirectory(TestBitStreams)
list(TRANSFORM GAMEMESSAGE_TESTBITSTREAMS PREPEND "${thisFolderName}/")
set(GAMEMESSAGE_TESTBITSTREAMS ${GAMEMESSAGE_TESTBITSTREAMS} PARENT_SCOPE)
# Export to parent scope
set(DGAMEMESSAGES_TESTS ${DGAMEMESSAGES_TESTS} PARENT_SCOPE)