It is now possible to use CMake on windows for proper build (PCH support included)
Merged PCH header into gamePCH since they became the same after these changes --HG-- branch : trunk rename : src/server/game/PrecompiledHeaders/NixCorePCH.cpp => src/server/game/PrecompiledHeaders/gamePCH.cpp rename : src/server/game/PrecompiledHeaders/NixCorePCH.h => src/server/game/PrecompiledHeaders/gamePCH.h
This commit is contained in:
@@ -44,7 +44,9 @@ add_executable(authserver
|
||||
|
||||
add_dependencies(authserver revision.h)
|
||||
|
||||
add_definitions(-D_TRINITY_REALM_CONFIG='"${CONF_DIR}/authserver.conf"')
|
||||
if(NOT WIN32)
|
||||
add_definitions(-D_TRINITY_REALM_CONFIG='"${CONF_DIR}/authserver.conf"')
|
||||
endif()
|
||||
|
||||
set(authserver_LINK_FLAGS "-pthread ${authserver_LINK_FLAGS}")
|
||||
|
||||
@@ -54,6 +56,18 @@ endif()
|
||||
|
||||
set_target_properties(authserver PROPERTIES LINK_FLAGS "${authserver_LINK_FLAGS}")
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(
|
||||
authserver
|
||||
shared
|
||||
trinitydatabase
|
||||
trinityauth
|
||||
trinityconfig
|
||||
${MYSQL_LIBRARY}
|
||||
${OPENSSL_LIBRARIES}
|
||||
${OPENSSL_EXTRA_LIBRARIES}
|
||||
)
|
||||
else()
|
||||
target_link_libraries(
|
||||
authserver
|
||||
shared
|
||||
@@ -64,7 +78,7 @@ target_link_libraries(
|
||||
${OPENSSL_LIBRARIES}
|
||||
${OSX_LIBS}
|
||||
)
|
||||
|
||||
endif()
|
||||
########### install files ###############
|
||||
|
||||
install(TARGETS authserver DESTINATION bin)
|
||||
|
||||
Reference in New Issue
Block a user