2010-05-06 00:08:41 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
#Platform specifics
|
|
|
|
|
2010-05-12 16:52:28 +00:00
|
|
|
IF(WITH_LUA51)
|
|
|
|
FIND_PACKAGE(Lua51 REQUIRED)
|
|
|
|
ELSE(WITH_LUA51)
|
|
|
|
FIND_PACKAGE(Lua50 REQUIRED)
|
|
|
|
ENDIF(WITH_LUA51)
|
2010-05-06 00:08:41 +00:00
|
|
|
FIND_PACKAGE(CURL REQUIRED)
|
2010-05-10 17:17:19 +00:00
|
|
|
FIND_PACKAGE(Libwww)
|
2010-05-29 19:49:31 +00:00
|
|
|
FIND_PACKAGE(ZLIB)
|
2010-08-13 16:16:37 +00:00
|
|
|
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 )
|
|
|
|
|
2010-07-17 16:03:13 +00:00
|
|
|
# config.h configuration and use by projects
|
2010-09-02 19:53:33 +00:00
|
|
|
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
|
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
|
2010-07-17 21:26:55 +00:00
|
|
|
ADD_DEFINITIONS(-DHAVE_CONFIG_H)
|
2010-07-17 16:03:13 +00:00
|
|
|
|
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)
|
2010-05-12 16:52:28 +00:00
|
|
|
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)
|
2010-05-13 20:43:50 +00:00
|
|
|
FIND_PACKAGE(MySQL REQUIRED)
|
2010-05-12 18:21:55 +00:00
|
|
|
ADD_SUBDIRECTORY(server)
|
2010-09-02 19:53:33 +00:00
|
|
|
ENDIF(WITH_RYZOM_SERVER)
|