Change Encyclo button name and macros icon
[ryzomcore.git] / nel / CMakeLists.txt
blobe080c640c27b643fc453053df27486abd184b4a9
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   IF(HUNTER_ENABLED)
14     HUNTER_ADD_PACKAGE(freetype)
15     FIND_PACKAGE(freetype CONFIG REQUIRED)
16     SET(FREETYPE_LIBRARIES freetype::freetype)
17   ELSE()
18     FIND_PACKAGE(FreeType)
19   ENDIF() #hunter
21   IF(WITH_NEL_CEGUI)
22     FIND_PACKAGE(CEGUI)
23   ENDIF()
24 ENDIF()
26 IF(WITH_SOUND AND NOT HUNTER_ENABLED)
27   FIND_PACKAGE(Ogg)
28   FIND_PACKAGE(Vorbis)
29   IF(WITH_FFMPEG)
30     FIND_PACKAGE(FFmpeg REQUIRED COMPONENTS AVCODEC AVFORMAT AVUTIL SWRESAMPLE)
31   ENDIF()
33   IF(WITH_DRIVER_OPENAL)
34     FIND_PACKAGE(OpenAL)
35   ENDIF()
37   IF(WITH_DRIVER_FMOD)
38     FIND_PACKAGE(FMOD)
39   ENDIF()
40 ENDIF()
42 IF(WITH_GTK)
43   FIND_PACKAGE(GTK2)
44 ENDIF()
46 IF(WITH_INSTALL_LIBRARIES)
47   IF(UNIX)
48     SET(prefix ${CMAKE_INSTALL_PREFIX})
49     SET(exec_prefix ${NL_BIN_ABSOLUTE_PREFIX})
50     SET(libdir ${NL_LIB_ABSOLUTE_PREFIX})
51     SET(includedir ${CMAKE_INSTALL_PREFIX}/include)
52     SET(enable_ligo ${WITH_LIGO})
53     SET(enable_logic ${WITH_LOGIC})
54     SET(enable_georges ${WITH_GEORGES})
55     SET(enable_net ${WITH_NET})
56     SET(enable_3d ${WITH_3D})
57     SET(enable_pacs ${WITH_PACS})
58     SET(enable_sound ${WITH_SOUND})
59     CONFIGURE_FILE(nel-config.in ${CMAKE_CURRENT_BINARY_DIR}/nel-config)
61     INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/nel-config DESTINATION ${NL_BIN_PREFIX})
62   ENDIF()
64   ADD_SUBDIRECTORY(include)
65 ENDIF()
67 ADD_SUBDIRECTORY(3rdparty)
68 ADD_SUBDIRECTORY(src)
70 IF(WITH_NEL_SAMPLES)
71   ADD_SUBDIRECTORY(samples)
72 ENDIF()
74 ADD_SUBDIRECTORY(tools)