2010-05-06 00:08:41 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
#Platform specifics
|
|
|
|
|
2010-05-29 19:49:31 +00:00
|
|
|
FIND_PACKAGE(ZLIB)
|
2010-05-06 00:08:41 +00:00
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common/src )
|
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common )
|
2010-09-16 01:30:35 +00:00
|
|
|
SET(RZ_SERVER_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/server/src)
|
2010-05-06 00:08:41 +00:00
|
|
|
|
|
|
|
ADD_SUBDIRECTORY(common)
|
2010-05-12 16:52:28 +00:00
|
|
|
|
2010-09-02 19:53:33 +00:00
|
|
|
IF(WITH_RYZOM_CLIENT)
|
2013-02-19 16:04:40 +00:00
|
|
|
IF(NOT WITH_GUI)
|
|
|
|
MESSAGE( FATAL_ERROR "The client cannot be built without the NeL GUI Library (WITH_GUI)")
|
|
|
|
ENDIF(NOT WITH_GUI)
|
|
|
|
|
2012-04-07 12:03:50 +00:00
|
|
|
IF(WITH_LUA51)
|
|
|
|
FIND_PACKAGE(Lua51 REQUIRED)
|
|
|
|
ELSE(WITH_LUA51)
|
|
|
|
FIND_PACKAGE(Lua50 REQUIRED)
|
|
|
|
ENDIF(WITH_LUA51)
|
|
|
|
FIND_PACKAGE(Luabind REQUIRED)
|
|
|
|
FIND_PACKAGE(CURL REQUIRED)
|
2012-05-06 19:50:44 +00:00
|
|
|
|
|
|
|
IF(WIN32 OR CURL_LIBRARIES MATCHES "\\.a")
|
|
|
|
SET(CURL_STATIC ON)
|
|
|
|
ENDIF(WIN32 OR CURL_LIBRARIES MATCHES "\\.a")
|
|
|
|
|
|
|
|
IF(CURL_STATIC)
|
|
|
|
SET(CURL_DEFINITIONS -DCURL_STATICLIB)
|
|
|
|
|
|
|
|
FIND_PACKAGE(OpenSSL QUIET)
|
|
|
|
|
|
|
|
IF(OPENSSL_FOUND)
|
|
|
|
SET(CURL_INCLUDE_DIRS ${CURL_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIR})
|
|
|
|
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES})
|
|
|
|
ENDIF(OPENSSL_FOUND)
|
|
|
|
|
2012-05-19 07:09:41 +00:00
|
|
|
# CURL Macports version depends on libidn, libintl and libiconv too
|
2012-05-06 19:50:44 +00:00
|
|
|
IF(APPLE)
|
|
|
|
FIND_LIBRARY(IDN_LIBRARY idn)
|
|
|
|
FIND_LIBRARY(INTL_LIBRARY intl)
|
|
|
|
|
2012-05-19 12:49:38 +00:00
|
|
|
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${IDN_LIBRARY} ${INTL_LIBRARY})
|
2012-05-06 19:50:44 +00:00
|
|
|
ENDIF(APPLE)
|
|
|
|
ENDIF(CURL_STATIC)
|
|
|
|
|
2010-05-12 16:52:28 +00:00
|
|
|
ADD_SUBDIRECTORY(client)
|
2013-07-19 16:11:31 +00:00
|
|
|
|
|
|
|
ELSEIF(WITH_RYZOM_TOOLS)
|
|
|
|
|
|
|
|
# Need clientsheets lib for sheets packer tool
|
|
|
|
ADD_SUBDIRECTORY(client)
|
|
|
|
|
2010-09-02 19:53:33 +00:00
|
|
|
ENDIF(WITH_RYZOM_CLIENT)
|
2010-05-12 16:52:28 +00:00
|
|
|
|
2010-09-02 19:53:33 +00:00
|
|
|
IF(WITH_RYZOM_TOOLS)
|
2010-05-12 16:52:28 +00:00
|
|
|
ADD_SUBDIRECTORY(tools)
|
2010-09-02 19:53:33 +00:00
|
|
|
ENDIF(WITH_RYZOM_TOOLS)
|
2010-05-06 00:08:41 +00:00
|
|
|
|
2010-09-02 19:53:33 +00:00
|
|
|
IF(WITH_RYZOM_SERVER)
|
2013-07-19 16:11:31 +00:00
|
|
|
|
2010-05-13 20:43:50 +00:00
|
|
|
FIND_PACKAGE(MySQL REQUIRED)
|
2010-05-12 18:21:55 +00:00
|
|
|
ADD_SUBDIRECTORY(server)
|
2013-07-19 16:11:31 +00:00
|
|
|
|
|
|
|
ELSEIF(WITH_RYZOM_TOOLS)
|
|
|
|
|
|
|
|
# Need servershare for build packed collision tool
|
|
|
|
# Need aishare for build wmap tool
|
|
|
|
ADD_SUBDIRECTORY(server)
|
|
|
|
|
2010-09-02 19:53:33 +00:00
|
|
|
ENDIF(WITH_RYZOM_SERVER)
|