include(FlightGearComponent)
-set(SOURCES
+set(COMMON
Airplane.cpp
Atmosphere.cpp
ControlMap.cpp
FGFDM.cpp
- FGGround.cpp
Gear.cpp
Glue.cpp
Ground.cpp
TurbineEngine.cpp
Turbulence.cpp
Wing.cpp
+)
+
+set(SOURCES
+ ${COMMON}
YASim.cxx
+ FGGround.cpp
)
-flightgear_component(YASim "${SOURCES}")
+flightgear_component(YASim "${SOURCES}")
-add_executable(yasim yasim-test.cpp ${SOURCES})
+add_executable(yasim yasim-test.cpp ${COMMON})
target_link_libraries(yasim
${SIMGEAR_CORE_LIBRARIES}
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
-install(TARGETS yasim RUNTIME DESTINATION bin)
\ No newline at end of file
+install(TARGETS yasim RUNTIME DESTINATION bin)