2010-09-02 19:53:33 +00:00
|
|
|
PROJECT(NeL CXX C)
|
|
|
|
|
|
|
|
IF(WITH_STATIC_DRIVERS)
|
2010-09-04 18:31:06 +00:00
|
|
|
ADD_DEFINITIONS(-DNL_STATIC)
|
2010-09-02 19:53:33 +00:00
|
|
|
ENDIF(WITH_STATIC_DRIVERS)
|
|
|
|
|
|
|
|
# On Windows we need to find DirectInput for NLMISC.
|
|
|
|
# This is how we get events.
|
|
|
|
IF(WIN32)
|
2010-09-25 13:41:37 +00:00
|
|
|
FIND_PACKAGE(DirectXSDK REQUIRED)
|
2010-09-02 19:53:33 +00:00
|
|
|
|
|
|
|
# On Win32 we can also build the MAX plugins.
|
|
|
|
IF(WITH_MAXPLUGIN)
|
|
|
|
FIND_PACKAGE(3dsMaxSDK)
|
|
|
|
ENDIF(WITH_MAXPLUGIN)
|
|
|
|
ENDIF(WIN32)
|
|
|
|
|
|
|
|
IF(WITH_3D)
|
|
|
|
FIND_PACKAGE(FreeType)
|
|
|
|
|
|
|
|
IF(WITH_DRIVER_OPENGL)
|
|
|
|
FIND_PACKAGE(OpenGL)
|
|
|
|
IF(NOT WIN32)
|
|
|
|
IF(APPLE)
|
|
|
|
FIND_LIBRARY(CARBON NAMES Carbon)
|
|
|
|
FIND_LIBRARY(COCOA NAMES Cocoa)
|
|
|
|
ELSE(APPLE)
|
|
|
|
FIND_PACKAGE(X11)
|
|
|
|
FIND_PACKAGE(XF86VidMode)
|
|
|
|
FIND_PACKAGE(XRandR)
|
|
|
|
ENDIF(APPLE)
|
|
|
|
ENDIF(NOT WIN32)
|
|
|
|
ENDIF(WITH_DRIVER_OPENGL)
|
|
|
|
|
|
|
|
IF(WITH_CEGUI)
|
|
|
|
FIND_PACKAGE(CEGUI)
|
|
|
|
ENDIF(WITH_CEGUI)
|
|
|
|
|
|
|
|
ENDIF(WITH_3D)
|
|
|
|
|
|
|
|
IF(WITH_SOUND)
|
|
|
|
FIND_PACKAGE(Ogg)
|
|
|
|
FIND_PACKAGE(Vorbis)
|
|
|
|
|
|
|
|
IF(WITH_DRIVER_OPENAL)
|
|
|
|
FIND_PACKAGE(OpenAL)
|
|
|
|
ENDIF(WITH_DRIVER_OPENAL)
|
|
|
|
|
|
|
|
IF(WITH_DRIVER_FMOD)
|
|
|
|
FIND_PACKAGE(FMOD)
|
|
|
|
ENDIF(WITH_DRIVER_FMOD)
|
|
|
|
ENDIF(WITH_SOUND)
|
|
|
|
|
|
|
|
IF(WITH_GTK)
|
|
|
|
FIND_PACKAGE(GTK2)
|
|
|
|
ENDIF(WITH_GTK)
|
|
|
|
|
|
|
|
IF(UNIX)
|
|
|
|
SET(prefix ${CMAKE_INSTALL_PREFIX})
|
|
|
|
SET(exec_prefix ${CMAKE_INSTALL_PREFIX}/bin)
|
2010-10-15 20:27:48 +00:00
|
|
|
SET(libdir ${CMAKE_INSTALL_PREFIX}/lib)
|
|
|
|
SET(includedir ${CMAKE_INSTALL_PREFIX}/include)
|
2010-09-02 19:53:33 +00:00
|
|
|
SET(enable_ligo ${WITH_LIGO})
|
|
|
|
SET(enable_logic ${WITH_LOGIC})
|
|
|
|
SET(enable_georges ${WITH_GEORGES})
|
|
|
|
SET(enable_net ${WITH_NET})
|
|
|
|
SET(enable_3d ${WITH_3D})
|
|
|
|
SET(enable_pacs ${WITH_PACS})
|
|
|
|
SET(enable_sound ${WITH_SOUND})
|
2010-10-15 20:27:48 +00:00
|
|
|
CONFIGURE_FILE(nel-config.in ${CMAKE_CURRENT_BINARY_DIR}/nel-config)
|
2010-09-02 19:53:33 +00:00
|
|
|
|
2010-09-08 07:18:37 +00:00
|
|
|
INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/nel-config DESTINATION bin)
|
2010-09-02 19:53:33 +00:00
|
|
|
ENDIF(UNIX)
|
|
|
|
|
2010-09-04 17:51:20 +00:00
|
|
|
ADD_SUBDIRECTORY(include)
|
2010-09-02 19:53:33 +00:00
|
|
|
ADD_SUBDIRECTORY(src)
|
|
|
|
|
|
|
|
IF(WITH_NEL_SAMPLES)
|
|
|
|
ADD_SUBDIRECTORY(samples)
|
|
|
|
ENDIF(WITH_NEL_SAMPLES)
|
|
|
|
|
|
|
|
IF(WITH_NEL_TOOLS)
|
2010-08-28 12:49:21 +00:00
|
|
|
FIND_PACKAGE(Squish)
|
2010-09-02 19:53:33 +00:00
|
|
|
ADD_SUBDIRECTORY(tools)
|
2010-09-21 19:50:10 +00:00
|
|
|
ENDIF(WITH_NEL_TOOLS)
|