CMake header support for XCode/Visual Studio
This commit is contained in:
parent
7c56cc617d
commit
7abf7c5748
10 changed files with 151 additions and 18 deletions
|
@ -2,7 +2,7 @@
|
|||
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})
|
||||
|
||||
|
|
|
@ -23,6 +23,27 @@ set(SOURCES
|
|||
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}")
|
||||
|
|
@ -4,5 +4,11 @@ set(SOURCES
|
|||
controls.cxx
|
||||
replay.cxx
|
||||
)
|
||||
|
||||
flightgear_component(Aircraft "${SOURCES}")
|
||||
|
||||
set(HEADERS
|
||||
controls.hxx
|
||||
replay.hxx
|
||||
)
|
||||
|
||||
|
||||
flightgear_component(Aircraft "${SOURCES}" "${HEADERS}")
|
|
@ -2,7 +2,6 @@ include(FlightGearComponent)
|
|||
|
||||
set(SOURCES
|
||||
apt_loader.cxx
|
||||
calc_loc.cxx
|
||||
dynamicloader.cxx
|
||||
dynamics.cxx
|
||||
gnnode.cxx
|
||||
|
@ -17,5 +16,22 @@ set(SOURCES
|
|||
simple.cxx
|
||||
xmlloader.cxx
|
||||
)
|
||||
|
||||
flightgear_component(Airports "${SOURCES}")
|
||||
|
||||
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}")
|
|
@ -16,4 +16,20 @@ set(SOURCES
|
|||
route_mgr.cxx
|
||||
)
|
||||
|
||||
flightgear_component(Autopilot "${SOURCES}")
|
||||
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}")
|
|
@ -6,4 +6,11 @@ set(SOURCES
|
|||
built_in/FGMagRibbon.cxx
|
||||
)
|
||||
|
||||
flightgear_component(Cockpit "${SOURCES}")
|
||||
set(HEADERS
|
||||
panel.hxx
|
||||
panel_io.hxx
|
||||
built_in/FGMagRibbon.hxx
|
||||
)
|
||||
|
||||
|
||||
flightgear_component(Cockpit "${SOURCES}" "${HEADERS}")
|
|
@ -18,5 +18,24 @@ set(SOURCES
|
|||
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}")
|
||||
|
|
|
@ -15,5 +15,18 @@ set(SOURCES
|
|||
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}")
|
||||
|
|
|
@ -31,8 +31,29 @@ set(SOURCES
|
|||
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}")
|
||||
|
|
|
@ -2,7 +2,6 @@ include(FlightGearComponent)
|
|||
|
||||
set(SOURCES
|
||||
airways.cxx
|
||||
awynet.cxx
|
||||
fixlist.cxx
|
||||
markerbeacon.cxx
|
||||
navdb.cxx
|
||||
|
@ -16,4 +15,19 @@ set(SOURCES
|
|||
PositionedBinding.cxx
|
||||
)
|
||||
|
||||
flightgear_component(Navaids "${SOURCES}")
|
||||
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}")
|
Loading…
Reference in a new issue