1
0
Fork 0

CMake header support for XCode/Visual Studio

This commit is contained in:
James Turner 2011-06-26 07:49:37 +01:00
parent 7c56cc617d
commit 7abf7c5748
10 changed files with 151 additions and 18 deletions

View file

@ -2,7 +2,7 @@
macro(flightgear_component name sources) macro(flightgear_component name sources)
set(libName "fg${name}") set(libName "fg${name}")
add_library(${libName} STATIC ${sources} ) add_library(${libName} STATIC ${sources} ${ARGV2})
set_property(GLOBAL APPEND PROPERTY FG_LIBS ${libName}) set_property(GLOBAL APPEND PROPERTY FG_LIBS ${libName})

View file

@ -24,5 +24,26 @@ set(SOURCES
submodel.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}")

View file

@ -5,4 +5,10 @@ set(SOURCES
replay.cxx replay.cxx
) )
flightgear_component(Aircraft "${SOURCES}") set(HEADERS
controls.hxx
replay.hxx
)
flightgear_component(Aircraft "${SOURCES}" "${HEADERS}")

View file

@ -2,7 +2,6 @@ include(FlightGearComponent)
set(SOURCES set(SOURCES
apt_loader.cxx apt_loader.cxx
calc_loc.cxx
dynamicloader.cxx dynamicloader.cxx
dynamics.cxx dynamics.cxx
gnnode.cxx gnnode.cxx
@ -18,4 +17,21 @@ set(SOURCES
xmlloader.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}")

View file

@ -16,4 +16,20 @@ set(SOURCES
route_mgr.cxx 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}")

View file

@ -6,4 +6,11 @@ set(SOURCES
built_in/FGMagRibbon.cxx built_in/FGMagRibbon.cxx
) )
flightgear_component(Cockpit "${SOURCES}") set(HEADERS
panel.hxx
panel_io.hxx
built_in/FGMagRibbon.hxx
)
flightgear_component(Cockpit "${SOURCES}" "${HEADERS}")

View file

@ -19,4 +19,23 @@ set(SOURCES
gravity.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}")

View file

@ -16,4 +16,17 @@ set(SOURCES
property_list.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}")

View file

@ -32,7 +32,28 @@ set(SOURCES
${RESOURCE_FILE} ${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) get_property(FG_LIBS GLOBAL PROPERTY FG_LIBS)
#message(STATUS "fg libs ${FG_LIBS}") #message(STATUS "fg libs ${FG_LIBS}")

View file

@ -2,7 +2,6 @@ include(FlightGearComponent)
set(SOURCES set(SOURCES
airways.cxx airways.cxx
awynet.cxx
fixlist.cxx fixlist.cxx
markerbeacon.cxx markerbeacon.cxx
navdb.cxx navdb.cxx
@ -16,4 +15,19 @@ set(SOURCES
PositionedBinding.cxx 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}")