2010-11-30 10:08:30 +00:00
|
|
|
include(FlightGearComponent)
|
|
|
|
|
2012-03-26 15:09:21 +00:00
|
|
|
set(COMMON
|
2012-02-24 21:23:15 +00:00
|
|
|
Airplane.cpp
|
2010-11-30 10:08:30 +00:00
|
|
|
Atmosphere.cpp
|
|
|
|
ControlMap.cpp
|
|
|
|
FGFDM.cpp
|
|
|
|
Gear.cpp
|
|
|
|
Glue.cpp
|
|
|
|
Ground.cpp
|
|
|
|
Hitch.cpp
|
|
|
|
Hook.cpp
|
|
|
|
Integrator.cpp
|
|
|
|
Jet.cpp
|
|
|
|
Launchbar.cpp
|
|
|
|
Math.cpp
|
|
|
|
Model.cpp
|
|
|
|
PistonEngine.cpp
|
|
|
|
PropEngine.cpp
|
|
|
|
Propeller.cpp
|
|
|
|
RigidBody.cpp
|
|
|
|
Rotor.cpp
|
|
|
|
Rotorpart.cpp
|
|
|
|
SimpleJet.cpp
|
|
|
|
Surface.cpp
|
|
|
|
Thruster.cpp
|
|
|
|
TurbineEngine.cpp
|
|
|
|
Turbulence.cpp
|
|
|
|
Wing.cpp
|
2012-03-26 15:09:21 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
${COMMON}
|
2010-11-30 10:08:30 +00:00
|
|
|
YASim.cxx
|
2012-03-26 15:09:21 +00:00
|
|
|
FGGround.cpp
|
2012-02-24 21:23:15 +00:00
|
|
|
)
|
2010-11-30 10:08:30 +00:00
|
|
|
|
2012-03-26 15:09:21 +00:00
|
|
|
flightgear_component(YASim "${SOURCES}")
|
2012-03-26 12:09:39 +00:00
|
|
|
|
2012-03-26 15:09:21 +00:00
|
|
|
add_executable(yasim yasim-test.cpp ${COMMON})
|
2010-11-30 10:08:30 +00:00
|
|
|
|
|
|
|
target_link_libraries(yasim
|
2011-09-08 12:59:40 +00:00
|
|
|
${SIMGEAR_CORE_LIBRARIES}
|
2012-03-26 12:09:39 +00:00
|
|
|
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
|
2010-11-30 10:08:30 +00:00
|
|
|
|
2012-03-26 15:09:21 +00:00
|
|
|
install(TARGETS yasim RUNTIME DESTINATION bin)
|