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 01:58:51 +00:00
|
|
|
add_library(dScriptsBase OBJECT ${DSCRIPTS_SOURCES})
|
|
|
|
target_link_libraries(dScriptsBase INTERFACE dGameBase dComponents)
|
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-03 20:31:50 +00:00
|
|
|
"${PROJECT_SOURCE_DIR}/dZoneManager"
|
2024-01-04 00:41:46 +00:00
|
|
|
)
|
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 01:58:51 +00:00
|
|
|
add_library(dScripts STATIC
|
|
|
|
$<TARGET_OBJECTS:dScriptsBase>
|
|
|
|
$<TARGET_OBJECTS:dScriptsClient>
|
|
|
|
$<TARGET_OBJECTS:dScriptsEquipmentScripts>
|
|
|
|
$<TARGET_OBJECTS:dScriptsEquipmentTriggers>
|
|
|
|
$<TARGET_OBJECTS:dScriptsZone>
|
|
|
|
"CppScripts.cpp"
|
|
|
|
)
|
|
|
|
target_link_libraries(dScripts PRIVATE dScriptsAI dScriptsServer)
|
|
|
|
target_include_directories(dScripts PRIVATE
|
|
|
|
$<TARGET_PROPERTY:dScriptsBase,INTERFACE_INCLUDE_DIRECTORIES>
|
|
|
|
$<TARGET_PROPERTY:dScriptsServer,INTERFACE_INCLUDE_DIRECTORIES>
|
|
|
|
$<TARGET_PROPERTY:dScriptsAI,INTERFACE_INCLUDE_DIRECTORIES>
|
|
|
|
$<TARGET_PROPERTY:dScriptsClient,INTERFACE_INCLUDE_DIRECTORIES>
|
|
|
|
$<TARGET_PROPERTY:dScriptsEquipmentScripts,INTERFACE_INCLUDE_DIRECTORIES>
|
|
|
|
$<TARGET_PROPERTY:dScriptsEquipmentTriggers,INTERFACE_INCLUDE_DIRECTORIES>
|
|
|
|
$<TARGET_PROPERTY:dScriptsZone,INTERFACE_INCLUDE_DIRECTORIES>
|
|
|
|
)
|
2024-01-04 00:41:46 +00:00
|
|
|
target_precompile_headers(dScripts REUSE_FROM dScriptsBase)
|