mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-14 12:18:22 +00:00
df0f11c95b
* Update CMake configuration for easier maintenance * Incorrect casing fix * Move package requirement * Update CTest linking * Add logs to the CMake * Add linking for common libraries Added linking for common libraries in tests subdirectory. * Move test subdirectory higher up for some reason * Whitespace a log removal Missed new line * Add dCommon to dChatFilter * Update library output dir * Correct libBcrypt * Further refactor CMake behaviour * Repair bad comments and update library defines * Revert to old include directory method * Implement platform defines * Add missing include Mac needs a specific include for defining platform. Does not compile without this. Co-authored-by: EmosewaMC <39972741+EmosewaMC@users.noreply.github.com>
60 lines
1.4 KiB
CMake
60 lines
1.4 KiB
CMake
set(DGAME_SOURCES "Character.cpp"
|
|
"Entity.cpp"
|
|
"EntityManager.cpp"
|
|
"LeaderboardManager.cpp"
|
|
"Player.cpp"
|
|
"TeamManager.cpp"
|
|
"TradingManager.cpp"
|
|
"User.cpp"
|
|
"UserManager.cpp")
|
|
|
|
add_subdirectory(dBehaviors)
|
|
|
|
foreach(file ${DGAME_DBEHAVIORS_SOURCES})
|
|
set(DGAME_SOURCES ${DGAME_SOURCES} "dBehaviors/${file}")
|
|
endforeach()
|
|
|
|
add_subdirectory(dComponents)
|
|
|
|
foreach(file ${DGAME_DCOMPONENTS_SOURCES})
|
|
set(DGAME_SOURCES ${DGAME_SOURCES} "dComponents/${file}")
|
|
endforeach()
|
|
|
|
add_subdirectory(dEntity)
|
|
|
|
foreach(file ${DGAME_DENTITY_SOURCES})
|
|
set(DGAME_SOURCES ${DGAME_SOURCES} "dEntity/${file}")
|
|
endforeach()
|
|
|
|
add_subdirectory(dGameMessages)
|
|
|
|
foreach(file ${DGAME_DGAMEMESSAGES_SOURCES})
|
|
set(DGAME_SOURCES ${DGAME_SOURCES} "dGameMessages/${file}")
|
|
endforeach()
|
|
|
|
add_subdirectory(dInventory)
|
|
|
|
foreach(file ${DGAME_DINVENTORY_SOURCES})
|
|
set(DGAME_SOURCES ${DGAME_SOURCES} "dInventory/${file}")
|
|
endforeach()
|
|
|
|
add_subdirectory(dMission)
|
|
|
|
foreach(file ${DGAME_DMISSION_SOURCES})
|
|
set(DGAME_SOURCES ${DGAME_SOURCES} "dMission/${file}")
|
|
endforeach()
|
|
|
|
add_subdirectory(dUtilities)
|
|
|
|
foreach(file ${DGAME_DUTILITIES_SOURCES})
|
|
set(DGAME_SOURCES ${DGAME_SOURCES} "dUtilities/${file}")
|
|
endforeach()
|
|
|
|
foreach(file ${DSCRIPT_SOURCES})
|
|
set(DGAME_SOURCES ${DGAME_SOURCES} "${PROJECT_SOURCE_DIR}/dScripts/${file}")
|
|
endforeach()
|
|
|
|
add_library(dGame STATIC ${DGAME_SOURCES})
|
|
|
|
target_link_libraries(dGame dDatabase)
|