]> git.mxchange.org Git - flightgear.git/blobdiff - CMakeLists.txt
NasalPositioned: Update for nasal::Ghost changes in SimGear
[flightgear.git] / CMakeLists.txt
index 35e12ac1cdcf97c99552b830545d0e55d1bbeff8..c9afd0951ef4d1e72047ec0f845d8818fbb7f2b2 100644 (file)
@@ -114,6 +114,16 @@ elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
     if(GSM_FOUND)
         set(SYSTEM_GSM_DEFAULT 1)
     endif(GSM_FOUND)
+
+    find_package(Flite)
+    if(FLITE_FOUND)
+        set(SYSTEM_FLITE_DEFAULT 1)
+    endif()
+
+    find_package(HtsEngine)
+    if(HTS_ENGINE_FOUND)
+        set(SYSTEM_HTS_ENGINE_DEFAULT 1)
+    endif()
 endif()
 
 find_package(Git)
@@ -143,6 +153,8 @@ option(ENABLE_IAX        "Set to ON to build FlightGear with IAXClient/fgcom bui
 option(USE_DBUS          "Set to ON to build FlightGear with DBus screensaver interaction (default on Linux)" ${USE_DBUS_DEFAULT})
 option(SYSTEM_SPEEX      "Set to ON to build IAXClient with the system's speex and speexdsp library" ${SYSTEM_SPEEX_DEFAULT})
 option(SYSTEM_GSM        "Set to ON to build IAXClient with the system's GSM library" ${SYSTEM_GSM_DEFAULT})
+option(SYSTEM_FLITE      "Set to ON to build Flightgear with the system's Flite library" ${SYSTEM_FLITE_DEFAULT})
+option(SYSTEM_HTS_ENGINE "Set to ON to build Flightgear with the system's HTS Engine library" ${SYSTEM_HTS_ENGINE_DEFAULT})
 
 # additional utilities
 option(ENABLE_FGADMIN    "Set to ON to build the FGADMIN application (default)" ON)
@@ -217,28 +229,6 @@ if (MSVC)
        endif()
 endif()
 
-if(ENABLE_FGADMIN)
-    find_package(FLTK)
-
-    if ( FLTK_FOUND )
-        if ( X11_Xinerama_FOUND )
-            message(STATUS "Found X11_Xinerama...")
-            list(APPEND FLTK_LIBRARIES ${X11_Xinerama_LIB})
-        endif()
-
-        if ( X11_Xft_FOUND )
-            message(STATUS "Found X11_Xft...")
-            list(APPEND FLTK_LIBRARIES ${X11_Xft_LIB})
-        endif()
-
-        if ( CMAKE_DL_LIBS )
-            list(APPEND FLTK_LIBRARIES ${CMAKE_DL_LIBS})
-        endif()
-
-        message(STATUS "Using FLTK_LIBRARIES for fgadmin: ${FLTK_LIBRARIES}")
-    endif ( FLTK_FOUND )
-endif(ENABLE_FGADMIN)
-
 ##############################################################################
 ## Sqlite3 setup