2022-11-03 17:57:54 +00:00
|
|
|
set(DSCRIPTS_SOURCES
|
|
|
|
"ActivityManager.cpp"
|
2022-07-16 23:24:16 +00:00
|
|
|
"BaseConsoleTeleportServer.cpp"
|
|
|
|
"BasePropertyServer.cpp"
|
|
|
|
"BaseRandomServer.cpp"
|
|
|
|
"BaseSurvivalServer.cpp"
|
|
|
|
"BaseWavesGenericEnemy.cpp"
|
|
|
|
"BaseWavesServer.cpp"
|
|
|
|
"ChooseYourDestinationNsToNt.cpp"
|
|
|
|
"Darkitect.cpp"
|
2024-01-04 00:41:46 +00:00
|
|
|
"InvalidScript.cpp"
|
2022-07-16 23:24:16 +00:00
|
|
|
"NPCAddRemoveItem.cpp"
|
|
|
|
"NtFactionSpyServer.cpp"
|
|
|
|
"ScriptComponent.cpp"
|
|
|
|
"ScriptedPowerupSpawner.cpp"
|
2022-11-03 17:57:54 +00:00
|
|
|
"SpawnPetBaseServer.cpp")
|
|
|
|
|
2024-01-04 00:41:46 +00:00
|
|
|
link_libraries(dDatabase dPhysics)
|
2022-11-03 17:57:54 +00:00
|
|
|
|
2024-01-04 00:41:46 +00:00
|
|
|
add_library(dScriptsBase STATIC ${DSCRIPTS_SOURCES})
|
|
|
|
target_include_directories(dScriptsBase PUBLIC .)
|
2024-01-03 20:13:47 +00:00
|
|
|
target_link_libraries(dScriptsBase INTERFACE dGameBase)
|
2024-01-04 00:41:46 +00:00
|
|
|
target_precompile_headers(dScriptsBase PRIVATE ${HEADERS_DGAME})
|
2022-11-03 17:57:54 +00:00
|
|
|
|
2024-01-04 00:41:46 +00:00
|
|
|
include_directories(
|
2024-01-03 20:13:47 +00:00
|
|
|
"${PROJECT_SOURCE_DIR}/dScripts"
|
|
|
|
"${PROJECT_SOURCE_DIR}/dGame"
|
|
|
|
"${PROJECT_SOURCE_DIR}/dGame/dComponents" # e.g. ScriptedActivityComponent.h
|
|
|
|
"${PROJECT_SOURCE_DIR}/dGame/dGameMessages" # e.g. direct ActivityManager
|
|
|
|
"${PROJECT_SOURCE_DIR}/dGame/dUtilities" # e.g. direct ActivityManager
|
|
|
|
"${PROJECT_SOURCE_DIR}/dGame/dEntity" # via dZoneManager.h
|
|
|
|
"${PROJECT_SOURCE_DIR}/dGame/dMission" # via MissionComponent.h
|
|
|
|
"${PROJECT_SOURCE_DIR}/dGame/dBehaviors" # viaInventoryComponent.h
|
|
|
|
"${PROJECT_SOURCE_DIR}/dGame/dInventory" # via InventoryComponent.h
|
2024-01-04 00:41:46 +00:00
|
|
|
)
|
|
|
|
link_libraries(dScriptsBase)
|
|
|
|
# dComponents
|
2022-11-03 17:57:54 +00:00
|
|
|
|
2024-01-04 00:41:46 +00:00
|
|
|
add_subdirectory(02_server)
|
|
|
|
add_subdirectory(ai)
|
2022-11-03 17:57:54 +00:00
|
|
|
add_subdirectory(client)
|
|
|
|
add_subdirectory(EquipmentScripts)
|
2022-12-21 22:33:41 +00:00
|
|
|
add_subdirectory(EquipmentTriggers)
|
2022-11-03 17:57:54 +00:00
|
|
|
add_subdirectory(zone)
|
|
|
|
|
2024-01-04 00:41:46 +00:00
|
|
|
add_library(dScripts STATIC "CppScripts.cpp")
|
|
|
|
target_precompile_headers(dScripts REUSE_FROM dScriptsBase)
|
|
|
|
target_include_directories(dScripts PUBLIC ".")
|
|
|
|
target_link_libraries(dScripts
|
|
|
|
dScriptsBase
|
|
|
|
dScriptsServer
|
|
|
|
dScriptsAI
|
|
|
|
dScriptsClient
|
|
|
|
dScriptsEquipmentScripts
|
|
|
|
dScriptsEquipmentTriggers
|
|
|
|
dScriptsZone)
|