2022-07-16 23:24:16 +00:00
|
|
|
set(DGAME_DUTILITIES_SOURCES "BrickDatabase.cpp"
|
2023-09-28 17:16:11 +00:00
|
|
|
"CheatDetection.cpp"
|
2022-07-16 23:24:16 +00:00
|
|
|
"GUID.cpp"
|
|
|
|
"Loot.cpp"
|
|
|
|
"Mail.cpp"
|
2024-01-05 12:31:22 +00:00
|
|
|
"ObjectIDManager.cpp"
|
2022-07-16 23:24:16 +00:00
|
|
|
"Preconditions.cpp"
|
|
|
|
"SlashCommandHandler.cpp"
|
2023-10-22 15:36:08 +00:00
|
|
|
"ServerPreconditions.cpp"
|
2024-01-16 20:46:44 +00:00
|
|
|
"VanityUtilities.cpp")
|
2024-01-04 00:41:46 +00:00
|
|
|
|
2024-04-10 01:15:51 +00:00
|
|
|
add_subdirectory(SlashCommands)
|
|
|
|
|
|
|
|
foreach(file ${DGAME_DUTILITIES_SLASHCOMMANDS})
|
|
|
|
set(DGAME_DUTILITIES_SOURCES ${DGAME_DUTILITIES_SOURCES} "SlashCommands/${file}")
|
|
|
|
endforeach()
|
|
|
|
|
2024-03-06 02:13:24 +00:00
|
|
|
add_library(dUtilities OBJECT ${DGAME_DUTILITIES_SOURCES})
|
2024-01-04 00:41:46 +00:00
|
|
|
target_precompile_headers(dUtilities REUSE_FROM dGameBase)
|
2024-04-10 01:15:51 +00:00
|
|
|
target_include_directories(dUtilities PUBLIC "." "SlashCommands"
|
2024-03-06 02:13:24 +00:00
|
|
|
PRIVATE
|
|
|
|
"${PROJECT_SOURCE_DIR}/dGame/dComponents"
|
|
|
|
"${PROJECT_SOURCE_DIR}/dGame/dInventory" # transitive via PossessableComponent.h
|
|
|
|
"${PROJECT_SOURCE_DIR}/dGame/dGameMessages"
|
|
|
|
"${PROJECT_SOURCE_DIR}/dGame/dBehaviors" # transitive via InventoryComponent.h
|
|
|
|
"${PROJECT_SOURCE_DIR}/dGame/dMission" # transitive via MissionComponent.h
|
|
|
|
"${PROJECT_SOURCE_DIR}/dGame/dEntity" # transitive via dZoneManager/Spawner.h
|
|
|
|
"${PROJECT_SOURCE_DIR}/dZoneManager" # Mail.cpp
|
|
|
|
)
|
2024-01-04 00:41:46 +00:00
|
|
|
target_link_libraries(dUtilities
|
|
|
|
PUBLIC dDatabase dPhysics
|
|
|
|
INTERFACE dZoneManager)
|