9b900e9430
Cache the parsed navigation and airport data in a binary file to reduce startup times and memory consumption (since only referenced FGPositioned elements are held in memory). Data will be reimported when the mod-time of any input file is changed. If a global file is changed (nav.dat, awy.dat, apt.dat, etc), the cache will be completely rebuilt, which takes approximately 30 seconds on moderate hardware. (Future work may reduce this).
41 lines
No EOL
625 B
CMake
41 lines
No EOL
625 B
CMake
include(FlightGearComponent)
|
|
|
|
set(SOURCES
|
|
airways.cxx
|
|
fixlist.cxx
|
|
markerbeacon.cxx
|
|
navdb.cxx
|
|
navlist.cxx
|
|
navrecord.cxx
|
|
positioned.cxx
|
|
procedure.cxx
|
|
route.cxx
|
|
routePath.cxx
|
|
waypoint.cxx
|
|
LevelDXML.cxx
|
|
FlightPlan.cxx
|
|
NavDataCache.cxx
|
|
sqlite3.c
|
|
PositionedOctree.cxx
|
|
)
|
|
|
|
set(HEADERS
|
|
airways.hxx
|
|
fixlist.hxx
|
|
markerbeacon.hxx
|
|
navdb.hxx
|
|
navlist.hxx
|
|
navrecord.hxx
|
|
positioned.hxx
|
|
procedure.hxx
|
|
route.hxx
|
|
routePath.hxx
|
|
waypoint.hxx
|
|
LevelDXML.hxx
|
|
FlightPlan.hxx
|
|
NavDataCache.hxx
|
|
sqlite3.h
|
|
PositionedOctree.hxx
|
|
)
|
|
|
|
flightgear_component(Navaids "${SOURCES}" "${HEADERS}") |