You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.4 KiB
CMake
67 lines
1.4 KiB
CMake
13 years ago
|
IF(WITH_STATIC_DRIVERS)
|
||
|
ADD_DEFINITIONS(-DNL_STATIC)
|
||
8 years ago
|
ENDIF()
|
||
13 years ago
|
|
||
|
IF(WIN32)
|
||
|
# On Win32 we can also build the MAX plugins.
|
||
|
IF(WITH_NEL_MAXPLUGIN)
|
||
|
FIND_PACKAGE(3dsMaxSDK)
|
||
8 years ago
|
ENDIF()
|
||
|
ENDIF()
|
||
13 years ago
|
|
||
|
IF(WITH_3D)
|
||
|
FIND_PACKAGE(FreeType)
|
||
|
|
||
|
IF(WITH_NEL_CEGUI)
|
||
|
FIND_PACKAGE(CEGUI)
|
||
8 years ago
|
ENDIF()
|
||
|
ENDIF()
|
||
13 years ago
|
|
||
|
IF(WITH_SOUND)
|
||
|
FIND_PACKAGE(Ogg)
|
||
|
FIND_PACKAGE(Vorbis)
|
||
6 years ago
|
FIND_PACKAGE(FFmpeg COMPONENTS AVCODEC AVFORMAT AVUTIL SWRESAMPLE)
|
||
13 years ago
|
|
||
|
IF(WITH_DRIVER_OPENAL)
|
||
|
FIND_PACKAGE(OpenAL)
|
||
8 years ago
|
ENDIF()
|
||
13 years ago
|
|
||
|
IF(WITH_DRIVER_FMOD)
|
||
|
FIND_PACKAGE(FMOD)
|
||
8 years ago
|
ENDIF()
|
||
|
ENDIF()
|
||
13 years ago
|
|
||
|
IF(WITH_GTK)
|
||
|
FIND_PACKAGE(GTK2)
|
||
8 years ago
|
ENDIF()
|
||
12 years ago
|
|
||
13 years ago
|
IF(WITH_INSTALL_LIBRARIES)
|
||
|
IF(UNIX)
|
||
|
SET(prefix ${CMAKE_INSTALL_PREFIX})
|
||
12 years ago
|
SET(exec_prefix ${NL_BIN_ABSOLUTE_PREFIX})
|
||
|
SET(libdir ${NL_LIB_ABSOLUTE_PREFIX})
|
||
13 years ago
|
SET(includedir ${CMAKE_INSTALL_PREFIX}/include)
|
||
|
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})
|
||
|
CONFIGURE_FILE(nel-config.in ${CMAKE_CURRENT_BINARY_DIR}/nel-config)
|
||
|
|
||
12 years ago
|
INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/nel-config DESTINATION ${NL_BIN_PREFIX})
|
||
8 years ago
|
ENDIF()
|
||
13 years ago
|
|
||
|
ADD_SUBDIRECTORY(include)
|
||
9 years ago
|
ENDIF()
|
||
13 years ago
|
|
||
10 years ago
|
ADD_SUBDIRECTORY(3rdparty)
|
||
13 years ago
|
ADD_SUBDIRECTORY(src)
|
||
|
|
||
|
IF(WITH_NEL_SAMPLES)
|
||
|
ADD_SUBDIRECTORY(samples)
|
||
9 years ago
|
ENDIF()
|
||
13 years ago
|
|
||
9 years ago
|
ADD_SUBDIRECTORY(tools)
|