2009-01-17 09:23:33 -05:00
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
|
|
SET(trinity-realm_SRCS
|
2009-12-20 22:15:24 -07:00
|
|
|
AuthCodes.cpp
|
2009-04-06 21:14:51 +02:00
|
|
|
AuthCodes.h
|
|
|
|
|
AuthSocket.cpp
|
|
|
|
|
AuthSocket.h
|
|
|
|
|
Main.cpp
|
|
|
|
|
RealmList.cpp
|
2009-01-17 09:23:33 -05:00
|
|
|
RealmList.h
|
2010-03-09 18:01:42 +03:00
|
|
|
RealmSocket.h
|
|
|
|
|
RealmSocket.cpp
|
|
|
|
|
RealmAcceptor.h
|
2009-01-17 09:23:33 -05:00
|
|
|
)
|
|
|
|
|
|
2009-03-21 01:42:46 +01:00
|
|
|
SET(trinity-realm_LINK_FLAGS "")
|
|
|
|
|
|
2009-01-17 09:23:33 -05:00
|
|
|
add_executable(trinity-realm ${trinity-realm_SRCS})
|
|
|
|
|
add_definitions(
|
|
|
|
|
-D_TRINITY_REALM_CONFIG='"${CONF_DIR}/trinityrealm.conf"'
|
|
|
|
|
)
|
|
|
|
|
IF (DO_MYSQL)
|
2009-03-21 01:42:46 +01:00
|
|
|
SET(trinity-realm_LINK_FLAGS "-pthread ${trinity-realm_LINK_FLAGS}")
|
2009-01-17 09:23:33 -05:00
|
|
|
ENDIF(DO_MYSQL)
|
2009-07-12 04:32:34 +02:00
|
|
|
IF (DO_POSTGRESQL)
|
|
|
|
|
SET(trinity-realm_LINK_FLAGS "-pthread ${trinity-realm_LINK_FLAGS}")
|
|
|
|
|
ENDIF(DO_POSTGRESQL)
|
2009-04-06 21:14:51 +02:00
|
|
|
|
2009-03-21 01:42:46 +01:00
|
|
|
IF (CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
|
|
|
|
SET(trinity-realm_LINK_FLAGS "-framework Carbon ${trinity-realm_LINK_FLAGS}")
|
|
|
|
|
ENDIF (CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
2009-01-17 09:23:33 -05:00
|
|
|
|
2009-03-21 01:42:46 +01:00
|
|
|
SET_TARGET_PROPERTIES(trinity-realm PROPERTIES LINK_FLAGS "${trinity-realm_LINK_FLAGS}")
|
2009-04-06 21:14:51 +02:00
|
|
|
|
2009-01-17 09:23:33 -05:00
|
|
|
target_link_libraries(
|
|
|
|
|
trinity-realm
|
|
|
|
|
shared
|
|
|
|
|
trinityframework
|
|
|
|
|
trinitysockets
|
|
|
|
|
trinitydatabase
|
|
|
|
|
trinityauth
|
|
|
|
|
trinityconfig
|
|
|
|
|
zlib
|
|
|
|
|
${SSLLIB}
|
|
|
|
|
${MYSQL_LIBRARIES}
|
2009-07-12 04:32:34 +02:00
|
|
|
${POSTGRESQL_LIBRARIES}
|
2009-03-21 01:42:46 +01:00
|
|
|
${OSX_LIBS}
|
2009-01-17 09:23:33 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
install(TARGETS trinity-realm DESTINATION bin)
|
|
|
|
|
|
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)
|
|
|
|
|
|