khanat-code-old/code/ryzom/CMakeLists.txt

44 lines
1.1 KiB
Text
Raw Normal View History

2010-05-06 00:08:41 +00:00
#-----------------------------------------------------------------------------
#Platform specifics
IF(WITH_LUA51)
FIND_PACKAGE(Lua51 REQUIRED)
ELSE(WITH_LUA51)
FIND_PACKAGE(Lua50 REQUIRED)
ENDIF(WITH_LUA51)
FIND_PACKAGE(Luabind REQUIRED)
2010-05-06 00:08:41 +00:00
FIND_PACKAGE(CURL REQUIRED)
2010-09-25 20:53:33 +00:00
FIND_PACKAGE(Libwww REQUIRED)
FIND_PACKAGE(ZLIB)
IF(NOT WIN32 AND NOT APPLE)
FIND_PACKAGE(X11)
ENDIF(NOT WIN32 AND NOT APPLE)
2010-05-06 00:08:41 +00:00
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common/src )
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common )
SET(RZ_SERVER_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/server/src)
2010-05-06 00:08:41 +00:00
IF(WITH_STATIC)
FIND_PACKAGE(OpenSSL QUIET)
IF(OPENSSL_FOUND)
2010-09-25 20:53:33 +00:00
SET(CURL_INCLUDE_DIRS ${CURL_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIR})
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES})
ENDIF(OPENSSL_FOUND)
SET(CURL_DEFINITIONS -DCURL_STATICLIB)
ENDIF(WITH_STATIC)
2010-05-06 00:08:41 +00:00
ADD_SUBDIRECTORY(common)
IF(WITH_RYZOM_CLIENT)
ADD_SUBDIRECTORY(client)
ENDIF(WITH_RYZOM_CLIENT)
IF(WITH_RYZOM_TOOLS)
ADD_SUBDIRECTORY(tools)
ENDIF(WITH_RYZOM_TOOLS)
2010-05-06 00:08:41 +00:00
IF(WITH_RYZOM_SERVER)
FIND_PACKAGE(MySQL REQUIRED)
ADD_SUBDIRECTORY(server)
ENDIF(WITH_RYZOM_SERVER)