Changed: Check for Lua, Luabind, CURL and LibWWW only if compiling the client

This commit is contained in:
kervala 2012-04-07 14:03:50 +02:00
parent b516228ad7
commit ff1306d4fe

View file

@ -1,18 +1,7 @@
#-----------------------------------------------------------------------------
#Platform specifics
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)
FIND_PACKAGE(Libwww REQUIRED)
FIND_PACKAGE(ZLIB)
IF(NOT WIN32 AND NOT APPLE)
FIND_PACKAGE(X11)
ENDIF(NOT WIN32 AND NOT APPLE)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common/src )
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common )
@ -30,6 +19,15 @@ ENDIF(WITH_STATIC)
ADD_SUBDIRECTORY(common)
IF(WITH_RYZOM_CLIENT)
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)
FIND_PACKAGE(Libwww REQUIRED)
ADD_SUBDIRECTORY(client)
ENDIF(WITH_RYZOM_CLIENT)