2022-11-07 08:12:35 +00:00
|
|
|
set(DMASTERSERVER_SOURCES
|
|
|
|
"InstanceManager.cpp"
|
2024-01-05 12:31:22 +00:00
|
|
|
"PersistentIDManager.cpp"
|
2023-12-30 07:00:43 +00:00
|
|
|
"Start.cpp"
|
2022-11-07 08:12:35 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_library(dMasterServer ${DMASTERSERVER_SOURCES})
|
|
|
|
add_executable(MasterServer "MasterServer.cpp")
|
2023-12-31 06:26:49 +00:00
|
|
|
add_compile_definitions(MasterServer PRIVATE PROJECT_VERSION="\"${PROJECT_VERSION}\"")
|
2024-03-06 02:13:24 +00:00
|
|
|
target_include_directories(dMasterServer PUBLIC "."
|
|
|
|
"${PROJECT_SOURCE_DIR}/dZoneManager" # InstanceManager.h uses dZMCommon.h
|
|
|
|
${PROJECT_SOURCE_DIR}/dServer/ # BinaryPathFinder.h
|
|
|
|
)
|
2022-11-07 08:12:35 +00:00
|
|
|
|
|
|
|
target_link_libraries(dMasterServer ${COMMON_LIBRARIES})
|
2024-03-06 02:13:24 +00:00
|
|
|
target_link_libraries(MasterServer ${COMMON_LIBRARIES} bcrypt dMasterServer dServer)
|
2022-07-16 23:24:16 +00:00
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
add_dependencies(MasterServer WorldServer AuthServer ChatServer)
|
|
|
|
endif()
|