2010-06-09 15:39:34 +02:00
|
|
|
# Copyright (C) 2005-2010 Trinity <http://www.trinitycore.org/>
|
|
|
|
|
#
|
|
|
|
|
# This file is free software; as a special exception the author gives
|
|
|
|
|
# unlimited permission to copy and/or distribute it, with or without
|
|
|
|
|
# modifications, as long as this notice is preserved.
|
|
|
|
|
#
|
|
|
|
|
# This program is distributed in the hope that it will be useful, but
|
|
|
|
|
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
|
|
|
|
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
|
|
########### authserver ###############
|
2009-01-17 09:23:33 -05:00
|
|
|
|
2010-06-09 15:13:07 +02:00
|
|
|
SET(authserver_SRCS
|
2010-06-07 12:41:57 +02:00
|
|
|
Authentication/AuthCodes.cpp
|
|
|
|
|
Authentication/AuthCodes.h
|
|
|
|
|
Realms/RealmList.cpp
|
|
|
|
|
Realms/RealmList.h
|
|
|
|
|
Server/AuthSocket.cpp
|
|
|
|
|
Server/AuthSocket.h
|
|
|
|
|
Server/RealmSocket.h
|
|
|
|
|
Server/RealmSocket.cpp
|
|
|
|
|
Server/RealmAcceptor.h
|
2009-04-06 21:14:51 +02:00
|
|
|
Main.cpp
|
2009-01-17 09:23:33 -05:00
|
|
|
)
|
|
|
|
|
|
2010-04-06 15:53:27 +02:00
|
|
|
include_directories(
|
2010-04-07 13:09:07 +02:00
|
|
|
${ACE_INCLUDE_DIR}
|
2010-04-06 15:53:27 +02:00
|
|
|
${CMAKE_BINARY_DIR}
|
2010-06-06 13:47:00 +02:00
|
|
|
${CMAKE_SOURCE_DIR}/src/server/shared
|
|
|
|
|
${CMAKE_SOURCE_DIR}/src/server/shared/Database
|
2010-06-08 01:20:06 +02:00
|
|
|
${CMAKE_SOURCE_DIR}/src/server/shared/Packets
|
|
|
|
|
${CMAKE_SOURCE_DIR}/src/server/shared/Cryptography
|
|
|
|
|
${CMAKE_SOURCE_DIR}/src/server/shared/Cryptography/Authentication
|
|
|
|
|
${CMAKE_SOURCE_DIR}/src/server/shared/Logging
|
|
|
|
|
${CMAKE_SOURCE_DIR}/src/server/shared/Utilities
|
|
|
|
|
${CMAKE_SOURCE_DIR}/src/server/authserver
|
|
|
|
|
${CMAKE_SOURCE_DIR}/src/server/authserver/Authentication
|
|
|
|
|
${CMAKE_SOURCE_DIR}/src/server/authserver/Realms
|
|
|
|
|
${CMAKE_SOURCE_DIR}/src/server/authserver/Server
|
2010-04-06 15:53:27 +02:00
|
|
|
${MYSQL_INCLUDE_DIR}
|
|
|
|
|
)
|
|
|
|
|
|
2010-06-09 15:13:07 +02:00
|
|
|
SET(authserver_LINK_FLAGS "")
|
2009-03-21 01:42:46 +01:00
|
|
|
|
2010-06-09 15:47:00 +02:00
|
|
|
add_executable(authserver ${authserver_SRCS})
|
2009-01-17 09:23:33 -05:00
|
|
|
add_definitions(
|
|
|
|
|
-D_TRINITY_REALM_CONFIG='"${CONF_DIR}/trinityrealm.conf"'
|
|
|
|
|
)
|
|
|
|
|
IF (DO_MYSQL)
|
2010-06-09 15:13:07 +02:00
|
|
|
SET(trinity-realm_LINK_FLAGS "-pthread ${authserver_LINK_FLAGS}")
|
2009-01-17 09:23:33 -05:00
|
|
|
ENDIF(DO_MYSQL)
|
2009-04-06 21:14:51 +02:00
|
|
|
|
2009-03-21 01:42:46 +01:00
|
|
|
IF (CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
2010-06-09 15:13:07 +02:00
|
|
|
SET(authserver_LINK_FLAGS "-framework Carbon ${authserver_LINK_FLAGS}")
|
2009-03-21 01:42:46 +01:00
|
|
|
ENDIF (CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
2009-01-17 09:23:33 -05:00
|
|
|
|
2010-06-09 15:13:07 +02:00
|
|
|
SET_TARGET_PROPERTIES(authserver PROPERTIES LINK_FLAGS "${authserver_LINK_FLAGS}")
|
2009-04-06 21:14:51 +02:00
|
|
|
|
2009-01-17 09:23:33 -05:00
|
|
|
target_link_libraries(
|
2010-06-09 15:47:00 +02:00
|
|
|
authserver
|
2009-01-17 09:23:33 -05:00
|
|
|
shared
|
|
|
|
|
trinitydatabase
|
|
|
|
|
trinityauth
|
|
|
|
|
trinityconfig
|
|
|
|
|
${SSLLIB}
|
|
|
|
|
${MYSQL_LIBRARIES}
|
2009-03-21 01:42:46 +01:00
|
|
|
${OSX_LIBS}
|
2009-01-17 09:23:33 -05:00
|
|
|
)
|
|
|
|
|
|
2010-06-09 15:13:07 +02:00
|
|
|
install(TARGETS authserver DESTINATION bin)
|
2009-01-17 09:23:33 -05:00
|
|
|
|
2009-03-20 22:17:39 +01:00
|
|
|
|
2009-01-17 09:23:33 -05:00
|
|
|
########### install files ###############
|
|
|
|
|
|
|
|
|
|
install(FILES trinityrealm.conf.dist DESTINATION etc)
|