mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-22 13:33:35 +00:00
33 lines
976 B
CMake
33 lines
976 B
CMake
set(DMASTERSERVER_SOURCES
|
|
"InstanceManager.cpp"
|
|
"PersistentIDManager.cpp"
|
|
"StartLocal.cpp"
|
|
)
|
|
|
|
if(WIN32 AND LOCAL_SERVER)
|
|
set(DMASTERSERVER_SOURCES ${DMASTERSERVER_SOURCES} "StartLocal.cpp")
|
|
else()
|
|
set(DMASTERSERVER_SOURCES ${DMASTERSERVER_SOURCES} "Start.cpp")
|
|
endif()
|
|
|
|
add_library(dMasterServer ${DMASTERSERVER_SOURCES})
|
|
|
|
if (WIN32 AND LOCAL_SERVER)
|
|
add_library(MasterServer SHARED "MasterServer.cpp")
|
|
else()
|
|
add_executable(MasterServer "MasterServer.cpp")
|
|
endif()
|
|
|
|
target_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 ${COMMON_LIBRARIES})
|
|
target_link_libraries(MasterServer ${COMMON_LIBRARIES} bcrypt dMasterServer dServer)
|
|
|
|
if(WIN32)
|
|
add_dependencies(MasterServer WorldServer AuthServer ChatServer)
|
|
endif()
|