1 IF(WITH_STATIC_DRIVERS)
2 ADD_DEFINITIONS(-DNL_STATIC)
6 # On Win32 we can also build the MAX plugins.
8 FIND_PACKAGE(3dsMaxSDK)
14 HUNTER_ADD_PACKAGE(freetype)
15 FIND_PACKAGE(freetype CONFIG REQUIRED)
16 SET(FREETYPE_LIBRARIES freetype::freetype)
18 FIND_PACKAGE(FreeType)
26 IF(WITH_SOUND AND NOT HUNTER_ENABLED)
30 FIND_PACKAGE(FFmpeg REQUIRED COMPONENTS AVCODEC AVFORMAT AVUTIL SWRESAMPLE)
33 IF(WITH_DRIVER_OPENAL)
46 IF(WITH_INSTALL_LIBRARIES)
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})
64 ADD_SUBDIRECTORY(include)
67 ADD_SUBDIRECTORY(3rdparty)
71 ADD_SUBDIRECTORY(samples)
74 ADD_SUBDIRECTORY(tools)