macro(flightgear_component name sources)
set(libName "fg${name}")
- add_library(${libName} STATIC ${sources} )
+ add_library(${libName} STATIC ${sources} ${ARGV2})
set_property(GLOBAL APPEND PROPERTY FG_LIBS ${libName})
performancedb.cxx
submodel.cxx
)
-
-flightgear_component(AIModel "${SOURCES}")
+
+set(HEADERS
+ AIAircraft.hxx
+ AIBallistic.hxx
+ AIBase.hxx
+ AICarrier.hxx
+ AIEscort.hxx
+ AIFlightPlan.hxx
+ AIGroundVehicle.hxx
+ AIManager.hxx
+ AIMultiplayer.hxx
+ AIShip.hxx
+ AIStatic.hxx
+ AIStorm.hxx
+ AITanker.hxx
+ AIThermal.hxx
+ AIWingman.hxx
+ performancedata.hxx
+ performancedb.hxx
+ submodel.hxx
+ )
+
+flightgear_component(AIModel "${SOURCES}" "${HEADERS}")
\ No newline at end of file
controls.cxx
replay.cxx
)
-
-flightgear_component(Aircraft "${SOURCES}")
\ No newline at end of file
+
+set(HEADERS
+ controls.hxx
+ replay.hxx
+ )
+
+
+flightgear_component(Aircraft "${SOURCES}" "${HEADERS}")
\ No newline at end of file
set(SOURCES
apt_loader.cxx
- calc_loc.cxx
dynamicloader.cxx
dynamics.cxx
gnnode.cxx
simple.cxx
xmlloader.cxx
)
-
-flightgear_component(Airports "${SOURCES}")
\ No newline at end of file
+
+set(HEADERS
+ apt_loader.hxx
+ dynamicloader.hxx
+ dynamics.hxx
+ gnnode.hxx
+ groundnetwork.hxx
+ parking.hxx
+ pavement.hxx
+ runwaybase.hxx
+ runwayprefloader.hxx
+ runwayprefs.hxx
+ runways.hxx
+ sidstar.hxx
+ simple.hxx
+ xmlloader.hxx
+ )
+
+flightgear_component(Airports "${SOURCES}" "${HEADERS}")
\ No newline at end of file
route_mgr.cxx
)
-flightgear_component(Autopilot "${SOURCES}")
\ No newline at end of file
+set(HEADERS
+ analogcomponent.hxx
+ autopilot.hxx
+ autopilotgroup.hxx
+ component.hxx
+ digitalcomponent.hxx
+ digitalfilter.hxx
+ flipflop.hxx
+ inputvalue.hxx
+ logic.hxx
+ pidcontroller.hxx
+ pisimplecontroller.hxx
+ predictor.hxx
+ route_mgr.hxx
+ )
+
+flightgear_component(Autopilot "${SOURCES}" "${HEADERS}")
\ No newline at end of file
built_in/FGMagRibbon.cxx
)
-flightgear_component(Cockpit "${SOURCES}")
\ No newline at end of file
+set(HEADERS
+ panel.hxx
+ panel_io.hxx
+ built_in/FGMagRibbon.hxx
+ )
+
+
+flightgear_component(Cockpit "${SOURCES}" "${HEADERS}")
\ No newline at end of file
presets.cxx
gravity.cxx
)
-
-flightgear_component(Environment "${SOURCES}")
+
+set(HEADERS
+ atmosphere.hxx
+ environment.hxx
+ environment_ctrl.hxx
+ environment_mgr.hxx
+ ephemeris.hxx
+ fgclouds.hxx
+ fgmetar.hxx
+ fgwind.hxx
+ metarairportfilter.hxx
+ metarproperties.hxx
+ precipitation_mgr.hxx
+ realwx_ctrl.hxx
+ ridge_lift.hxx
+ terrainsampler.hxx
+ presets.hxx
+ gravity.hxx
+ )
+
+flightgear_component(Environment "${SOURCES}" "${HEADERS}")
new_gui.cxx
property_list.cxx
)
-
-flightgear_component(GUI "${SOURCES}")
+
+set(HEADERS
+ AirportList.hxx
+ MapWidget.hxx
+ SafeTexFont.hxx
+ WaypointList.hxx
+ dialog.hxx
+ gui.h
+ layout.hxx
+ menubar.hxx
+ new_gui.hxx
+ property_list.hxx
+ )
+
+flightgear_component(GUI "${SOURCES}" "${HEADERS}")
viewmgr.cxx
${RESOURCE_FILE}
)
-
-add_executable(fgfs ${SOURCES})
+
+set(HEADERS
+ CameraGroup.hxx
+ FGEventHandler.hxx
+ WindowBuilder.hxx
+ WindowSystemAdapter.hxx
+ fg_commands.hxx
+ fg_init.hxx
+ fg_io.hxx
+ fg_props.hxx
+ fgviewer.hxx
+ globals.hxx
+ logger.hxx
+ main.hxx
+ options.hxx
+ renderer.hxx
+ splash.hxx
+ util.hxx
+ viewer.hxx
+ viewmgr.hxx
+ )
+
+add_executable(fgfs ${SOURCES} ${HEADERS})
get_property(FG_LIBS GLOBAL PROPERTY FG_LIBS)
#message(STATUS "fg libs ${FG_LIBS}")
set(SOURCES
airways.cxx
- awynet.cxx
fixlist.cxx
markerbeacon.cxx
navdb.cxx
PositionedBinding.cxx
)
-flightgear_component(Navaids "${SOURCES}")
\ No newline at end of file
+set(HEADERS
+ airways.hxx
+ fixlist.hxx
+ markerbeacon.hxx
+ navdb.hxx
+ navlist.hxx
+ navrecord.hxx
+ positioned.hxx
+ procedure.hxx
+ route.hxx
+ routePath.hxx
+ waypoint.hxx
+ PositionedBinding.hxx
+ )
+
+flightgear_component(Navaids "${SOURCES}" "${HEADERS}")
\ No newline at end of file