|
|
|
@ -77,11 +77,17 @@ SET(WITH_3D ON )
|
|
|
|
|
|
|
|
|
|
FIND_PACKAGE(Threads REQUIRED)
|
|
|
|
|
FIND_PACKAGE(LibXml2 REQUIRED)
|
|
|
|
|
FIND_PACKAGE(Lua50 REQUIRED)
|
|
|
|
|
IF(WITH_LUA51)
|
|
|
|
|
FIND_PACKAGE(Lua51 REQUIRED)
|
|
|
|
|
ELSE(WITH_LUA51)
|
|
|
|
|
FIND_PACKAGE(Lua50 REQUIRED)
|
|
|
|
|
ENDIF(WITH_LUA51)
|
|
|
|
|
FIND_PACKAGE(CURL REQUIRED)
|
|
|
|
|
FIND_PACKAGE(Libwww)
|
|
|
|
|
FIND_PACKAGE(X11)
|
|
|
|
|
|
|
|
|
|
IF(NOT WIN32)
|
|
|
|
|
FIND_PACKAGE(X11)
|
|
|
|
|
ENDIF(NOT WIN32)
|
|
|
|
|
|
|
|
|
|
NL_SETUP_BUILD()
|
|
|
|
|
|
|
|
|
@ -89,37 +95,6 @@ NL_CONFIGURE_CHECKS()
|
|
|
|
|
|
|
|
|
|
FIND_PACKAGE(NeL COMPONENTS nelmisc nelnet nel3d nelgeorges nelligo nelpacs nelsound nelsnd_lowlevel REQUIRED)
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
|
# An example of finding NeL 3D and CEGUI Renderer.
|
|
|
|
|
###
|
|
|
|
|
IF(WITH_3D)
|
|
|
|
|
FIND_PACKAGE(FreeType)
|
|
|
|
|
# FIND_PACKAGE(NeL3D)
|
|
|
|
|
FIND_PACKAGE(Jpeg)
|
|
|
|
|
#
|
|
|
|
|
# IF(WITH_DRIVER_OPENGL)
|
|
|
|
|
# FIND_PACKAGE(OpenGL)
|
|
|
|
|
# FIND_PACKAGE(NeLDriverGL)
|
|
|
|
|
# ENDIF(WITH_DRIVER_OPENGL)
|
|
|
|
|
#
|
|
|
|
|
# IF(WITH_CEGUI)
|
|
|
|
|
# FIND_PACKAGE(CEGUI)
|
|
|
|
|
# FIND_PACKAGE(NeLCEGUIRenderer)
|
|
|
|
|
# ENDIF(WITH_CEGUI)
|
|
|
|
|
#
|
|
|
|
|
# SET(JPEG_LIB jpeg)
|
|
|
|
|
ENDIF(WITH_3D)
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
|
# An example of finding sound and a driver.
|
|
|
|
|
###
|
|
|
|
|
#IF(WITH_SOUND)
|
|
|
|
|
# FIND_PACKAGE(NeLSound)
|
|
|
|
|
# IF(WITH_DRIVER_OPENAL)
|
|
|
|
|
# FIND_PACKAGE(OpenAL)
|
|
|
|
|
# FIND_PACKAGE(NeLDriverAL)
|
|
|
|
|
# ENDIF(WITH_DRIVER_OPENAL)
|
|
|
|
|
#ENDIF(WITH_SOUND)
|
|
|
|
|
|
|
|
|
|
IF(WIN32)
|
|
|
|
|
INCLUDE(${CMAKE_ROOT}/Modules/Platform/Windows-cl.cmake)
|
|
|
|
@ -132,6 +107,12 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common )
|
|
|
|
|
NL_SETUP_BUILD_FLAGS()
|
|
|
|
|
|
|
|
|
|
ADD_SUBDIRECTORY(common)
|
|
|
|
|
ADD_SUBDIRECTORY(client)
|
|
|
|
|
ADD_SUBDIRECTORY(tools)
|
|
|
|
|
|
|
|
|
|
IF(WITH_CLIENT)
|
|
|
|
|
ADD_SUBDIRECTORY(client)
|
|
|
|
|
ENDIF(WITH_CLIENT)
|
|
|
|
|
|
|
|
|
|
IF(WITH_TOOLS)
|
|
|
|
|
ADD_SUBDIRECTORY(tools)
|
|
|
|
|
ENDIF(WITH_TOOLS)
|
|
|
|
|
|
|
|
|
|