mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-23 05:53:34 +00:00
d283bbd1c4
* fix: split apart big Cmake libraries * fix: formatting * fix: newline * fix: add quotes
51 lines
1.2 KiB
CMake
51 lines
1.2 KiB
CMake
set(DSCRIPTS_SOURCES
|
|
"ActivityManager.cpp"
|
|
"BaseConsoleTeleportServer.cpp"
|
|
"BasePropertyServer.cpp"
|
|
"BaseRandomServer.cpp"
|
|
"BaseSurvivalServer.cpp"
|
|
"BaseWavesGenericEnemy.cpp"
|
|
"BaseWavesServer.cpp"
|
|
"ChooseYourDestinationNsToNt.cpp"
|
|
"Darkitect.cpp"
|
|
"InvalidScript.cpp"
|
|
"NPCAddRemoveItem.cpp"
|
|
"NtFactionSpyServer.cpp"
|
|
"ScriptComponent.cpp"
|
|
"ScriptedPowerupSpawner.cpp"
|
|
"SpawnPetBaseServer.cpp")
|
|
|
|
link_libraries(dDatabase dPhysics)
|
|
|
|
add_library(dScriptsBase STATIC ${DSCRIPTS_SOURCES})
|
|
target_include_directories(dScriptsBase PUBLIC .)
|
|
target_link_libraries(dScriptsBase
|
|
INTERFACE dGameBase)
|
|
target_precompile_headers(dScriptsBase PRIVATE ${HEADERS_DGAME})
|
|
|
|
include_directories(
|
|
${PROJECT_SOURCE_DIR}/dScripts
|
|
${PROJECT_SOURCE_DIR}/dGame
|
|
)
|
|
link_libraries(dScriptsBase)
|
|
# dComponents
|
|
|
|
add_subdirectory(02_server)
|
|
add_subdirectory(ai)
|
|
add_subdirectory(client)
|
|
add_subdirectory(EquipmentScripts)
|
|
add_subdirectory(EquipmentTriggers)
|
|
add_subdirectory(zone)
|
|
|
|
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)
|