Linux multi-monitor fullscreen support
[ryzomcore.git] / nel / CMakeLists.txt
blobb102310abb995d4dc6986d7207248be9e788b37e
1 IF(WITH_STATIC_DRIVERS)
2   ADD_DEFINITIONS(-DNL_STATIC)
3 ENDIF()
5 IF(WIN32)
6   # On Win32 we can also build the MAX plugins.
7   IF(WITH_NEL_MAXPLUGIN)
8     FIND_PACKAGE(3dsMaxSDK)
9   ENDIF()
10 ENDIF()
12 IF(WITH_3D)
13   FIND_PACKAGE(FreeType)
15   IF(WITH_NEL_CEGUI)
16     FIND_PACKAGE(CEGUI)
17   ENDIF()
18 ENDIF()
20 IF(WITH_SOUND)
21   FIND_PACKAGE(Ogg)
22   FIND_PACKAGE(Vorbis)
23   IF(WITH_FFMPEG)
24     FIND_PACKAGE(FFmpeg REQUIRED COMPONENTS AVCODEC AVFORMAT AVUTIL SWRESAMPLE)
25   ENDIF()
27   IF(WITH_DRIVER_OPENAL)
28     FIND_PACKAGE(OpenAL)
29   ENDIF()
31   IF(WITH_DRIVER_FMOD)
32     FIND_PACKAGE(FMOD)
33   ENDIF()
34 ENDIF()
36 IF(WITH_GTK)
37   FIND_PACKAGE(GTK2)
38 ENDIF()
40 IF(WITH_INSTALL_LIBRARIES)
41   IF(UNIX)
42     SET(prefix ${CMAKE_INSTALL_PREFIX})
43     SET(exec_prefix ${NL_BIN_ABSOLUTE_PREFIX})
44     SET(libdir ${NL_LIB_ABSOLUTE_PREFIX})
45     SET(includedir ${CMAKE_INSTALL_PREFIX}/include)
46     SET(enable_ligo ${WITH_LIGO})
47     SET(enable_logic ${WITH_LOGIC})
48     SET(enable_georges ${WITH_GEORGES})
49     SET(enable_net ${WITH_NET})
50     SET(enable_3d ${WITH_3D})
51     SET(enable_pacs ${WITH_PACS})
52     SET(enable_sound ${WITH_SOUND})
53     CONFIGURE_FILE(nel-config.in ${CMAKE_CURRENT_BINARY_DIR}/nel-config)
55     INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/nel-config DESTINATION ${NL_BIN_PREFIX})
56   ENDIF()
58   ADD_SUBDIRECTORY(include)
59 ENDIF()
61 ADD_SUBDIRECTORY(3rdparty)
62 ADD_SUBDIRECTORY(src)
64 IF(WITH_NEL_SAMPLES)
65   ADD_SUBDIRECTORY(samples)
66 ENDIF()
68 ADD_SUBDIRECTORY(tools)