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

hg/feature/gsoc2012-fabien
kervala 13 years ago
parent 6c768a144a
commit 18ea4f8004

@ -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)

Loading…
Cancel
Save