mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 05:27:19 +00:00
fix not building on unix
This commit is contained in:
parent
702dcbb8d2
commit
8907cd467d
@ -9,9 +9,11 @@ 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 ${COMMON_LIBRARIES})
|
||||
target_link_libraries(MasterServer ${COMMON_LIBRARIES} bcrypt dMasterServer)
|
||||
target_link_libraries(MasterServer ${COMMON_LIBRARIES} bcrypt dMasterServer dServer)
|
||||
|
||||
if(WIN32)
|
||||
add_dependencies(MasterServer WorldServer AuthServer ChatServer)
|
||||
|
@ -4,3 +4,7 @@ set(DSERVER_SOURCES
|
||||
add_library(dServer STATIC ${DSERVER_SOURCES})
|
||||
|
||||
target_include_directories(dServer PUBLIC ".")
|
||||
|
||||
target_include_directories(dServer PRIVATE
|
||||
${PROJECT_SOURCE_DIR}/dCommon/ # BinaryPathFinder.h
|
||||
)
|
||||
|
@ -8,6 +8,10 @@ target_link_libraries(dWorldServer PUBLIC dGameBase dCommon)
|
||||
add_executable(WorldServer "WorldServer.cpp")
|
||||
add_compile_definitions(WorldServer PRIVATE PROJECT_VERSION="\"${PROJECT_VERSION}\"")
|
||||
|
||||
target_include_directories(WorldServer PRIVATE
|
||||
${PROJECT_SOURCE_DIR}/dServer/ # BinaryPathFinder.h
|
||||
)
|
||||
|
||||
target_link_libraries(WorldServer ${COMMON_LIBRARIES}
|
||||
dScripts
|
||||
dGameBase
|
||||
@ -15,4 +19,4 @@ target_link_libraries(WorldServer ${COMMON_LIBRARIES}
|
||||
dUtilities
|
||||
dGameMessages
|
||||
dInventory
|
||||
dGame dChatFilter dZoneManager dPhysics Detour Recast tinyxml2 dWorldServer dNavigation)
|
||||
dGame dChatFilter dZoneManager dPhysics Detour Recast tinyxml2 dWorldServer dNavigation dServer)
|
||||
|
Loading…
Reference in New Issue
Block a user