mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 13:37:22 +00:00
21 lines
705 B
CMake
21 lines
705 B
CMake
set(DMASTERSERVER_SOURCES
|
|
"InstanceManager.cpp"
|
|
"PersistentIDManager.cpp"
|
|
"Start.cpp"
|
|
)
|
|
|
|
add_library(dMasterServer ${DMASTERSERVER_SOURCES})
|
|
add_executable(MasterServer "MasterServer.cpp")
|
|
add_compile_definitions(MasterServer PRIVATE PROJECT_VERSION="\"${PROJECT_VERSION}\"")
|
|
target_include_directories(dMasterServer PUBLIC "."
|
|
"${PROJECT_SOURCE_DIR}/dZoneManager" # InstanceManager.h uses dZMCommon.h
|
|
${PROJECT_SOURCE_DIR}/dServer/ # BinaryPathFinder.h
|
|
)
|
|
|
|
target_link_libraries(dMasterServer PRIVATE ${COMMON_LIBRARIES})
|
|
target_link_libraries(MasterServer PRIVATE ${COMMON_LIBRARIES} bcrypt dMasterServer dServer)
|
|
|
|
if(WIN32)
|
|
add_dependencies(MasterServer WorldServer AuthServer ChatServer)
|
|
endif()
|