| 1 |
include(FlightGearComponent) |
| 2 |
|
| 3 |
set(HEADERS |
| 4 |
FGFDMExec.h |
| 5 |
FGJSBBase.h |
| 6 |
JSBSim.hxx |
| 7 |
initialization/FGInitialCondition.h |
| 8 |
initialization/FGTrim.h |
| 9 |
initialization/FGTrimAxis.h |
| 10 |
input_output/FGXMLParse.h |
| 11 |
input_output/FGXMLFileRead.h |
| 12 |
input_output/FGPropertyReader.h |
| 13 |
input_output/FGPropertyManager.h |
| 14 |
input_output/FGScript.h |
| 15 |
input_output/FGfdmSocket.h |
| 16 |
input_output/string_utilities.h |
| 17 |
input_output/FGXMLElement.h |
| 18 |
input_output/net_fdm.hxx |
| 19 |
input_output/FGGroundCallback.h |
| 20 |
input_output/FGInputType.h |
| 21 |
input_output/FGInputSocket.h |
| 22 |
input_output/FGUDPInputSocket.h |
| 23 |
input_output/FGOutputFG.h |
| 24 |
input_output/FGOutputFile.h |
| 25 |
input_output/FGOutputSocket.h |
| 26 |
input_output/FGOutputTextFile.h |
| 27 |
input_output/FGOutputType.h |
| 28 |
input_output/FGModelLoader.h |
| 29 |
math/FGParameter.h |
| 30 |
math/LagrangeMultiplier.h |
| 31 |
math/FGColumnVector3.h |
| 32 |
math/FGCondition.h |
| 33 |
math/FGFunction.h |
| 34 |
math/FGLocation.h |
| 35 |
math/FGMatrix33.h |
| 36 |
math/FGModelFunctions.h |
| 37 |
math/FGPropertyValue.h |
| 38 |
math/FGQuaternion.h |
| 39 |
math/FGRealValue.h |
| 40 |
math/FGRungeKutta.h |
| 41 |
math/FGTable.h |
| 42 |
math/FGFunctionValue.h |
| 43 |
math/FGTemplateFunc.h |
| 44 |
models/FGAccelerations.h |
| 45 |
models/FGAerodynamics.h |
| 46 |
models/FGAircraft.h |
| 47 |
models/FGAtmosphere.h |
| 48 |
models/FGAuxiliary.h |
| 49 |
models/FGBuoyantForces.h |
| 50 |
models/FGExternalForce.h |
| 51 |
models/FGExternalReactions.h |
| 52 |
models/FGFCS.h |
| 53 |
models/FGGasCell.h |
| 54 |
models/FGSurface.h |
| 55 |
models/FGGroundReactions.h |
| 56 |
models/FGInertial.h |
| 57 |
models/FGInput.h |
| 58 |
models/FGLGear.h |
| 59 |
models/FGMassBalance.h |
| 60 |
models/FGModel.h |
| 61 |
models/FGOutput.h |
| 62 |
models/FGPropagate.h |
| 63 |
models/FGPropulsion.h |
| 64 |
models/atmosphere/FGStandardAtmosphere.h |
| 65 |
models/atmosphere/FGWinds.h |
| 66 |
models/atmosphere/FGMSIS.h |
| 67 |
models/atmosphere/MSIS/nrlmsise-00.h |
| 68 |
models/flight_control/FGAccelerometer.h |
| 69 |
models/flight_control/FGActuator.h |
| 70 |
models/flight_control/FGAngles.h |
| 71 |
models/flight_control/FGDeadBand.h |
| 72 |
models/flight_control/FGFCSComponent.h |
| 73 |
models/flight_control/FGFCSFunction.h |
| 74 |
models/flight_control/FGFilter.h |
| 75 |
models/flight_control/FGGain.h |
| 76 |
models/flight_control/FGGyro.h |
| 77 |
models/flight_control/FGKinemat.h |
| 78 |
models/flight_control/FGMagnetometer.h |
| 79 |
models/flight_control/FGPID.h |
| 80 |
models/flight_control/FGSensor.h |
| 81 |
models/flight_control/FGSensorOrientation.h |
| 82 |
models/flight_control/FGSummer.h |
| 83 |
models/flight_control/FGSwitch.h |
| 84 |
models/flight_control/FGWaypoint.h |
| 85 |
models/flight_control/FGDistributor.h |
| 86 |
models/flight_control/FGLinearActuator.h |
| 87 |
models/propulsion/FGElectric.h |
| 88 |
models/propulsion/FGEngine.h |
| 89 |
models/propulsion/FGForce.h |
| 90 |
models/propulsion/FGNozzle.h |
| 91 |
models/propulsion/FGPiston.h |
| 92 |
models/propulsion/FGPropeller.h |
| 93 |
models/propulsion/FGRocket.h |
| 94 |
models/propulsion/FGRotor.h |
| 95 |
models/propulsion/FGTank.h |
| 96 |
models/propulsion/FGThruster.h |
| 97 |
models/propulsion/FGTransmission.h |
| 98 |
models/propulsion/FGTurbine.h |
| 99 |
models/propulsion/FGTurboProp.h |
| 100 |
) |
| 101 |
|
| 102 |
set(SOURCES |
| 103 |
FGFDMExec.cpp |
| 104 |
FGJSBBase.cpp |
| 105 |
JSBSim.cxx |
| 106 |
initialization/FGInitialCondition.cpp |
| 107 |
initialization/FGTrim.cpp |
| 108 |
initialization/FGTrimAxis.cpp |
| 109 |
input_output/FGGroundCallback.cpp |
| 110 |
input_output/FGPropertyReader.cpp |
| 111 |
input_output/FGPropertyManager.cpp |
| 112 |
input_output/FGScript.cpp |
| 113 |
input_output/FGXMLElement.cpp |
| 114 |
input_output/FGXMLParse.cpp |
| 115 |
input_output/FGXMLFileRead.cpp |
| 116 |
input_output/FGfdmSocket.cpp |
| 117 |
input_output/string_utilities.cpp |
| 118 |
input_output/FGInputType.cpp |
| 119 |
input_output/FGInputSocket.cpp |
| 120 |
input_output/FGUDPInputSocket.cpp |
| 121 |
input_output/FGOutputFG.cpp |
| 122 |
input_output/FGOutputFile.cpp |
| 123 |
input_output/FGOutputSocket.cpp |
| 124 |
input_output/FGOutputTextFile.cpp |
| 125 |
input_output/FGOutputType.cpp |
| 126 |
input_output/FGModelLoader.cpp |
| 127 |
math/FGColumnVector3.cpp |
| 128 |
math/FGCondition.cpp |
| 129 |
math/FGFunction.cpp |
| 130 |
math/FGLocation.cpp |
| 131 |
math/FGMatrix33.cpp |
| 132 |
math/FGModelFunctions.cpp |
| 133 |
math/FGPropertyValue.cpp |
| 134 |
math/FGQuaternion.cpp |
| 135 |
math/FGRealValue.cpp |
| 136 |
math/FGRungeKutta.cpp |
| 137 |
math/FGTable.cpp |
| 138 |
math/FGTemplateFunc.cpp |
| 139 |
models/FGAccelerations.cpp |
| 140 |
models/FGAerodynamics.cpp |
| 141 |
models/FGAircraft.cpp |
| 142 |
models/FGAtmosphere.cpp |
| 143 |
models/FGAuxiliary.cpp |
| 144 |
models/FGBuoyantForces.cpp |
| 145 |
models/FGExternalForce.cpp |
| 146 |
models/FGExternalReactions.cpp |
| 147 |
models/FGFCS.cpp |
| 148 |
models/FGGasCell.cpp |
| 149 |
models/FGSurface.cpp |
| 150 |
models/FGGroundReactions.cpp |
| 151 |
models/FGInertial.cpp |
| 152 |
models/FGInput.cpp |
| 153 |
models/FGLGear.cpp |
| 154 |
models/FGMassBalance.cpp |
| 155 |
models/FGModel.cpp |
| 156 |
models/FGOutput.cpp |
| 157 |
models/FGPropagate.cpp |
| 158 |
models/FGPropulsion.cpp |
| 159 |
models/atmosphere/FGStandardAtmosphere.cpp |
| 160 |
models/atmosphere/FGWinds.cpp |
| 161 |
models/atmosphere/FGMSIS.cpp |
| 162 |
models/atmosphere/MSIS/nrlmsise-00.c |
| 163 |
models/atmosphere/MSIS/nrlmsise-00_data.c |
| 164 |
models/flight_control/FGAccelerometer.cpp |
| 165 |
models/flight_control/FGActuator.cpp |
| 166 |
models/flight_control/FGAngles.cpp |
| 167 |
models/flight_control/FGDeadBand.cpp |
| 168 |
models/flight_control/FGFCSComponent.cpp |
| 169 |
models/flight_control/FGFCSFunction.cpp |
| 170 |
models/flight_control/FGFilter.cpp |
| 171 |
models/flight_control/FGGain.cpp |
| 172 |
models/flight_control/FGGyro.cpp |
| 173 |
models/flight_control/FGKinemat.cpp |
| 174 |
models/flight_control/FGMagnetometer.cpp |
| 175 |
models/flight_control/FGPID.cpp |
| 176 |
models/flight_control/FGSensor.cpp |
| 177 |
models/flight_control/FGSummer.cpp |
| 178 |
models/flight_control/FGSwitch.cpp |
| 179 |
models/flight_control/FGWaypoint.cpp |
| 180 |
models/flight_control/FGDistributor.cpp |
| 181 |
models/flight_control/FGLinearActuator.cpp |
| 182 |
models/propulsion/FGElectric.cpp |
| 183 |
models/propulsion/FGEngine.cpp |
| 184 |
models/propulsion/FGForce.cpp |
| 185 |
models/propulsion/FGNozzle.cpp |
| 186 |
models/propulsion/FGPiston.cpp |
| 187 |
models/propulsion/FGPropeller.cpp |
| 188 |
models/propulsion/FGRocket.cpp |
| 189 |
models/propulsion/FGRotor.cpp |
| 190 |
models/propulsion/FGTank.cpp |
| 191 |
models/propulsion/FGThruster.cpp |
| 192 |
models/propulsion/FGTransmission.cpp |
| 193 |
models/propulsion/FGTurbine.cpp |
| 194 |
models/propulsion/FGTurboProp.cpp |
| 195 |
) |
| 196 |
|
| 197 |
|
| 198 |
add_library(JSBSim STATIC ${SOURCES} ${HEADERS}) |
| 199 |
set(VERSION_MESSAGE "compiled from FlightGear ${FLIGHTGEAR_VERSION}") |
| 200 |
add_definitions("-DJSBSIM_VERSION=\"${VERSION_MESSAGE}\"") |
| 201 |
|
| 202 |
target_link_libraries(JSBSim SimGearCore) |
| 203 |
target_include_directories(JSBSim PRIVATE ${PROJECT_SOURCE_DIR}/src/FDM/JSBSim) |
| 204 |
|
| 205 |
add_executable(JSBsim_bin JSBSim.cpp ) |
| 206 |
set_target_properties(JSBsim_bin PROPERTIES OUTPUT_NAME "JSBSim" ) |
| 207 |
target_Link_libraries(JSBsim_bin JSBSim) |
| 208 |
target_include_directories(JSBsim_bin PRIVATE ${PROJECT_SOURCE_DIR}/src/FDM/JSBSim) |
| 209 |
|
| 210 |
if (MSVC) |
| 211 |
set_target_properties(JSBsim_bin PROPERTIES DEBUG_POSTFIX d) |
| 212 |
target_compile_definitions(JSBSim PUBLIC JSBSIM_STATIC_LINK) |
| 213 |
endif () |
| 214 |
install(TARGETS JSBsim_bin RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) |
| 215 |
|
| 216 |
# eof |