2010-05-06 02:08:41 +02:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
#Platform specifics
|
|
|
|
|
2010-05-12 11:52:28 -05:00
|
|
|
IF(WITH_LUA51)
|
|
|
|
FIND_PACKAGE(Lua51 REQUIRED)
|
|
|
|
ELSE(WITH_LUA51)
|
|
|
|
FIND_PACKAGE(Lua50 REQUIRED)
|
|
|
|
ENDIF(WITH_LUA51)
|
2010-08-20 13:27:17 +02:00
|
|
|
FIND_PACKAGE(Luabind REQUIRED)
|
2010-05-06 02:08:41 +02:00
|
|
|
FIND_PACKAGE(CURL REQUIRED)
|
2010-09-03 22:48:53 +02:00
|
|
|
FIND_PACKAGE(OpenSSL REQUIRED)
|
2010-05-10 12:17:19 -05:00
|
|
|
FIND_PACKAGE(Libwww)
|
2010-05-29 21:49:31 +02:00
|
|
|
FIND_PACKAGE(ZLIB)
|
2010-08-13 18:16:37 +02:00
|
|
|
IF(NOT WIN32 AND NOT APPLE)
|
|
|
|
FIND_PACKAGE(X11)
|
|
|
|
ENDIF(NOT WIN32 AND NOT APPLE)
|
2010-05-06 02:08:41 +02:00
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common/src )
|
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common )
|
2010-09-15 20:30:35 -05:00
|
|
|
SET(RZ_SERVER_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/server/src)
|
2010-05-06 02:08:41 +02:00
|
|
|
|
2010-09-08 09:31:00 +02:00
|
|
|
RYZOM_SETUP_PREFIX_PATHS()
|
|
|
|
|
2010-09-04 20:31:06 +02:00
|
|
|
IF(NOT WIN32)
|
|
|
|
NL_CONFIGURE_CHECKS()
|
|
|
|
ENDIF(NOT WIN32)
|
2010-09-03 22:48:53 +02:00
|
|
|
|
2010-09-04 19:51:20 +02:00
|
|
|
IF(WITH_STATIC)
|
|
|
|
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES})
|
|
|
|
SET(CURL_DEFINITIONS -DCURL_STATICLIB)
|
|
|
|
ENDIF(WITH_STATIC)
|
|
|
|
|
2010-05-06 02:08:41 +02:00
|
|
|
ADD_SUBDIRECTORY(common)
|
2010-05-12 11:52:28 -05:00
|
|
|
|
2010-09-02 13:53:33 -06:00
|
|
|
IF(WITH_RYZOM_CLIENT)
|
2010-05-12 11:52:28 -05:00
|
|
|
ADD_SUBDIRECTORY(client)
|
2010-09-02 13:53:33 -06:00
|
|
|
ENDIF(WITH_RYZOM_CLIENT)
|
2010-05-12 11:52:28 -05:00
|
|
|
|
2010-09-02 13:53:33 -06:00
|
|
|
IF(WITH_RYZOM_TOOLS)
|
2010-05-12 11:52:28 -05:00
|
|
|
ADD_SUBDIRECTORY(tools)
|
2010-09-02 13:53:33 -06:00
|
|
|
ENDIF(WITH_RYZOM_TOOLS)
|
2010-05-06 02:08:41 +02:00
|
|
|
|
2010-09-02 13:53:33 -06:00
|
|
|
IF(WITH_RYZOM_SERVER)
|
2010-05-13 15:43:50 -05:00
|
|
|
FIND_PACKAGE(MySQL REQUIRED)
|
2010-05-12 13:21:55 -05:00
|
|
|
ADD_SUBDIRECTORY(server)
|
2010-09-02 13:53:33 -06:00
|
|
|
ENDIF(WITH_RYZOM_SERVER)
|