mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-23 05:53:34 +00:00
554a9a6806
* fix: more include changes * fix: remove dZoneManager from global include * fix: dDatabase * fix: dCommon * fix: object libs * fix: rebase * fix: bcrypt * wip: try simplified connector build * fix: update dockerfile * fix: mariadb C/C++ on apple * feat: Move scripts to CMAKE_MODULE_PATH * fix: dPropertyBehaviors * fix: macos? * fix: Dockerfile * fix: macos? * fix: macos? * fix: macos? * fix: macos? * fix: macos? * try: install_name_tool * fix not building on unix * fix include paths * Remove code changes Will fix in another PR. * format pass remove 2 more included directories. remove commented out code add status to messages * comments and format surround include directories with quotes remove commented out code remove debug messages * Update CMakeLists.txt --------- Co-authored-by: David Markowitz <EmosewaMC@gmail.com> Co-authored-by: David Markowitz <39972741+EmosewaMC@users.noreply.github.com>
58 lines
1.6 KiB
CMake
58 lines
1.6 KiB
CMake
set(DSCRIPTS_SOURCES_02_SERVER)
|
|
|
|
add_subdirectory(DLU)
|
|
|
|
foreach(file ${DSCRIPTS_SOURCES_02_SERVER_DLU})
|
|
set(DSCRIPTS_SOURCES_02_SERVER ${DSCRIPTS_SOURCES_02_SERVER} "DLU/${file}")
|
|
endforeach()
|
|
|
|
add_subdirectory(Enemy)
|
|
|
|
add_subdirectory(Equipment)
|
|
|
|
foreach(file ${DSCRIPTS_SOURCES_02_SERVER_EQUIPMENT})
|
|
set(DSCRIPTS_SOURCES_02_SERVER ${DSCRIPTS_SOURCES_02_SERVER} "Equipment/${file}")
|
|
endforeach()
|
|
|
|
add_subdirectory(Map)
|
|
|
|
add_subdirectory(Minigame)
|
|
|
|
foreach(file ${DSCRIPTS_SOURCES_02_SERVER_MINIGAME})
|
|
set(DSCRIPTS_SOURCES_02_SERVER ${DSCRIPTS_SOURCES_02_SERVER} "Minigame/${file}")
|
|
endforeach()
|
|
|
|
add_subdirectory(Objects)
|
|
|
|
foreach(file ${DSCRIPTS_SOURCES_02_SERVER_OBJECTS})
|
|
set(DSCRIPTS_SOURCES_02_SERVER ${DSCRIPTS_SOURCES_02_SERVER} "Objects/${file}")
|
|
endforeach()
|
|
|
|
add_subdirectory(Pets)
|
|
|
|
add_library(dScriptsServerBase OBJECT ${DSCRIPTS_SOURCES_02_SERVER})
|
|
target_include_directories(dScriptsServerBase PUBLIC "."
|
|
"DLU"
|
|
"Equipment"
|
|
"Minigame"
|
|
"Minigame/General"
|
|
"Objects"
|
|
)
|
|
target_precompile_headers(dScriptsServerBase REUSE_FROM dScriptsBase)
|
|
|
|
add_library(dScriptsServer INTERFACE)
|
|
target_sources(dScriptsServer INTERFACE
|
|
$<TARGET_OBJECTS:dScriptsServerBase>
|
|
$<TARGET_OBJECTS:dScriptsServerEnemy>
|
|
$<TARGET_OBJECTS:dScriptsServerPets>
|
|
)
|
|
target_link_libraries(dScriptsServer INTERFACE
|
|
dScriptsServerMap
|
|
)
|
|
target_include_directories(dScriptsServer INTERFACE
|
|
$<TARGET_PROPERTY:dScriptsServerBase,INTERFACE_INCLUDE_DIRECTORIES>
|
|
$<TARGET_PROPERTY:dScriptsServerEnemy,INTERFACE_INCLUDE_DIRECTORIES>
|
|
$<TARGET_PROPERTY:dScriptsServerMap,INTERFACE_INCLUDE_DIRECTORIES>
|
|
$<TARGET_PROPERTY:dScriptsServerPets,INTERFACE_INCLUDE_DIRECTORIES>
|
|
)
|