mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 14:57:44 +00:00
Another build fix attempt
This commit is contained in:
parent
edff024004
commit
d4cb28f99f
2 changed files with 52 additions and 38 deletions
|
@ -1,9 +1,10 @@
|
|||
cmake_minimum_required( VERSION 2.6 )
|
||||
cmake_minimum_required(VERSION 3.0.2)
|
||||
cmake_policy(SET CMP0015 NEW)
|
||||
project(Sapphire)
|
||||
|
||||
file(GLOB SERVER_PUBLIC_INCLUDE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*")
|
||||
file( GLOB SERVER_SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}*.cpp" )
|
||||
file(GLOB SERVER_SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}*.c*")
|
||||
|
||||
|
||||
add_executable(sapphire_lobby ${SERVER_PUBLIC_INCLUDE_FILES} ${SERVER_SOURCE_FILES})
|
||||
|
||||
|
@ -18,5 +19,11 @@ set_target_properties( sapphire_lobby PROPERTIES
|
|||
VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../../../bin/"
|
||||
)
|
||||
|
||||
target_link_libraries( sapphire_lobby common )
|
||||
if (UNIX)
|
||||
target_link_libraries(sapphire_lobby common pthread dl z)
|
||||
else()
|
||||
target_link_libraries(sapphire_lobby common zlib1)
|
||||
endif()
|
||||
|
||||
target_link_libraries(sapphire_lobby ${Boost_LIBRARIES} ${Boost_LIBRARIES})
|
||||
cotire( sapphire_lobby )
|
|
@ -37,8 +37,15 @@ set_target_properties( sapphire_zone PROPERTIES
|
|||
|
||||
target_link_libraries( sapphire_zone common )
|
||||
|
||||
target_link_libraries( sapphire_zone ${Boost_LIBRARIES} )
|
||||
if (UNIX)
|
||||
target_link_libraries( sapphire_zone pthread )
|
||||
target_link_libraries( sapphire_zone dl )
|
||||
target_link_libraries( sapphire_zone z )
|
||||
else()
|
||||
target_link_libraries( sapphire_zone zlib1 )
|
||||
endif()
|
||||
|
||||
target_link_libraries( sapphire_zone ${Boost_LIBRARIES} )
|
||||
target_include_directories( sapphire_zone PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}" )
|
||||
|
||||
if (UNIX)
|
||||
|
|
Loading…
Add table
Reference in a new issue