]> git.mxchange.org Git - flightgear.git/blob - utils/fgadmin/CMakeLists.txt
JsonUriHandler: allow POST updates without child
[flightgear.git] / utils / fgadmin / CMakeLists.txt
1 #Zlib is already required by FG but we check it just in case
2 if( ZLIB_FOUND )
3     include_directories(${ZLIB_INCLUDE_DIR})
4     set( HAVE_ZLIB 1)
5     message(STATUS "Zlib found for fgadmin")
6 endif( ZLIB_FOUND )
7
8 find_package(BZip2)
9 if( BZIP2_FOUND )
10     include_directories(${BZIP2_INCLUDE_DIR})
11     set( HAVE_BZ2LIB 1)
12     message(STATUS "BZip2 found for fgadmin")
13 endif( BZIP2_FOUND )
14
15 find_package(FLTK)
16 if( FLTK_FOUND )
17     include_directories(${FLTK_INCLUDE_DIR})
18
19     if ( X11_Xinerama_FOUND )
20         message(STATUS "Found X11_Xinerama...")
21         list(APPEND FLTK_LIBRARIES ${X11_Xinerama_LIB})
22     endif()
23
24     if ( X11_Xft_FOUND )
25         message(STATUS "Found X11_Xft...")
26         list(APPEND FLTK_LIBRARIES ${X11_Xft_LIB})
27     endif()
28
29     if ( CMAKE_DL_LIBS )
30         list(APPEND FLTK_LIBRARIES ${CMAKE_DL_LIBS})
31     endif()
32
33     if( EXISTS ${FLTK_FLUID_EXECUTABLE} )
34         add_subdirectory(src)
35     else()
36         message(STATUS "Fluid executable not found, disabling fgadmin")
37     endif()
38
39     message(STATUS "Using FLTK_LIBRARIES for fgadmin: ${FLTK_LIBRARIES}")
40 else()
41     message(STATUS "FLTK not found, disabling fgadmin")
42 endif( FLTK_FOUND )
43
44 configure_file(
45     "${PROJECT_SOURCE_DIR}/utils/fgadmin/src/config_cmake.h.in"
46     "${PROJECT_BINARY_DIR}/utils/fgadmin/src/config_fgadmin.h"
47 )