]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/CMakeLists.txt
Fix crash starting at heliport.
[flightgear.git] / src / Navaids / CMakeLists.txt
index 0dbc542c6527698c56d56f445648ef8b17cfa42e..d611e1c16c4f5a734bdb1f0fac683ee64e166473 100644 (file)
@@ -7,6 +7,7 @@ set(SOURCES
        navdb.cxx
        navlist.cxx
        navrecord.cxx
+       poidb.cxx
        positioned.cxx
        procedure.cxx
        route.cxx
@@ -15,7 +16,6 @@ set(SOURCES
     LevelDXML.cxx
     FlightPlan.cxx
     NavDataCache.cxx
-    sqlite3.c
     PositionedOctree.cxx
        )
 
@@ -26,6 +26,7 @@ set(HEADERS
        navdb.hxx
        navlist.hxx
        navrecord.hxx
+       poidb.hxx
        positioned.hxx
        procedure.hxx
        route.hxx
@@ -34,8 +35,12 @@ set(HEADERS
     LevelDXML.hxx
     FlightPlan.hxx
     NavDataCache.hxx
-    sqlite3.h
     PositionedOctree.hxx
     )
 
-flightgear_component(Navaids "${SOURCES}" "${HEADERS}")
\ No newline at end of file
+if (NOT SYSTEM_SQLITE)
+    list(APPEND SOURCES sqlite3.c)
+    list(APPEND HEADERS sqlite3.h)
+endif()
+
+flightgear_component(Navaids "${SOURCES}" "${HEADERS}")