mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 23:17:28 +00:00
fix: bcrypt
This commit is contained in:
parent
d6d5cb7515
commit
2ad3cb79d3
@ -245,12 +245,6 @@ foreach(dir ${INCLUDED_DIRECTORIES})
|
|||||||
include_directories(${PROJECT_SOURCE_DIR}/${dir})
|
include_directories(${PROJECT_SOURCE_DIR}/${dir})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
if(NOT WIN32)
|
|
||||||
include_directories("${PROJECT_SOURCE_DIR}/thirdparty/libbcrypt/include/bcrypt")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
include_directories("${PROJECT_SOURCE_DIR}/thirdparty/libbcrypt/include")
|
|
||||||
|
|
||||||
# Add linking directories:
|
# Add linking directories:
|
||||||
# link_directories(${PROJECT_BINARY_DIR})
|
# link_directories(${PROJECT_BINARY_DIR})
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ target_include_directories(dMasterServer PUBLIC "."
|
|||||||
"${PROJECT_SOURCE_DIR}/dZoneManager" # InstanceManager.h uses dZMCommon.h
|
"${PROJECT_SOURCE_DIR}/dZoneManager" # InstanceManager.h uses dZMCommon.h
|
||||||
)
|
)
|
||||||
target_link_libraries(dMasterServer ${COMMON_LIBRARIES})
|
target_link_libraries(dMasterServer ${COMMON_LIBRARIES})
|
||||||
target_link_libraries(MasterServer ${COMMON_LIBRARIES} dMasterServer)
|
target_link_libraries(MasterServer ${COMMON_LIBRARIES} bcrypt dMasterServer)
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
add_dependencies(MasterServer WorldServer AuthServer ChatServer)
|
add_dependencies(MasterServer WorldServer AuthServer ChatServer)
|
||||||
|
@ -8,6 +8,7 @@ set(DNET_SOURCES "AuthPackets.cpp"
|
|||||||
"ZoneInstanceManager.cpp")
|
"ZoneInstanceManager.cpp")
|
||||||
|
|
||||||
add_library(dNet STATIC ${DNET_SOURCES})
|
add_library(dNet STATIC ${DNET_SOURCES})
|
||||||
|
target_link_libraries(dNet PRIVATE bcrypt)
|
||||||
target_include_directories(dNet PRIVATE
|
target_include_directories(dNet PRIVATE
|
||||||
${PROJECT_SOURCE_DIR}/dCommon
|
${PROJECT_SOURCE_DIR}/dCommon
|
||||||
${PROJECT_SOURCE_DIR}/dCommon/dEnums
|
${PROJECT_SOURCE_DIR}/dCommon/dEnums
|
||||||
|
6
thirdparty/CMakeLists.txt
vendored
6
thirdparty/CMakeLists.txt
vendored
@ -19,7 +19,11 @@ add_library(bcrypt ${SOURCES_LIBBCRYPT})
|
|||||||
# Because we are not using the libbcrypt CMakeLists.txt, we need to include these headers for the library to use.
|
# Because we are not using the libbcrypt CMakeLists.txt, we need to include these headers for the library to use.
|
||||||
# fortunately they are only needed for building the libbcrypt directory and nothing else, so these are marked private.
|
# fortunately they are only needed for building the libbcrypt directory and nothing else, so these are marked private.
|
||||||
|
|
||||||
target_include_directories(bcrypt PRIVATE "libbcrypt/include/bcrypt")
|
if(NOT WIN32)
|
||||||
|
target_include_directories(bcrypt PRIVATE "libbcrypt/include/bcrypt")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
target_include_directories(bcrypt INTERFACE "libbcrypt/include")
|
||||||
target_include_directories(bcrypt PRIVATE "libbcrypt/src")
|
target_include_directories(bcrypt PRIVATE "libbcrypt/src")
|
||||||
|
|
||||||
# Source code for sqlite
|
# Source code for sqlite
|
||||||
|
Loading…
Reference in New Issue
Block a user