]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/CMakeLists.txt
Interim windows build fix
[flightgear.git] / src / Main / CMakeLists.txt
index 5d8ebfacb8d54c762741b53e50a8df0c57cbeb07..4ea0fe523bf115bab90c07eafa1191e66c10563d 100644 (file)
@@ -130,13 +130,16 @@ endif()
 if (CRASHRPT_FOUND)
        target_link_libraries(fgfs ${CRASHRPT_LIBRARY})
 endif()
-
+if(X11_FOUND)
+    target_link_libraries(fgfs ${X11_LIBRARIES})
+endif()
 target_link_libraries(fgfs
        ${SQLITE3_LIBRARY}
        ${SIMGEAR_LIBRARIES}
        ${OPENSCENEGRAPH_LIBRARIES}
        ${OPENGL_LIBRARIES}
        ${PLIB_LIBRARIES}
+        ${ZLIB_LIBRARY}
        ${HLA_LIBRARIES}
        ${EVENT_INPUT_LIBRARIES}
        ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
@@ -145,7 +148,15 @@ target_link_libraries(fgfs
 )
 
 if(ENABLE_FLITE)
-target_link_libraries(fgfs hts_engine flite_hts)
+    if(SYSTEM_HTS_ENGINE)
+        target_link_libraries(fgfs flite_hts ${HTS_ENGINE_LIBRARIES})
+    else()
+        target_link_libraries(fgfs flite_hts hts_engine)
+    endif()
+endif()
+
+if (Qt5Core_FOUND)
+    target_link_libraries(fgfs Qt5::Widgets fglauncher)
 endif()
 
 if (APPLE)