include(FlightGearComponent)
-set(SOURCES
+set(COMMON
Airplane.cpp
Atmosphere.cpp
ControlMap.cpp
FGFDM.cpp
- FGGround.cpp
Gear.cpp
Glue.cpp
Ground.cpp
Integrator.cpp
Jet.cpp
Launchbar.cpp
- Math.cpp
Model.cpp
PistonEngine.cpp
PropEngine.cpp
TurbineEngine.cpp
Turbulence.cpp
Wing.cpp
+ )
+
+set(SOURCES
+ ${COMMON}
YASim.cxx
-)
+ FGGround.cpp
+ )
+
+flightgear_component(YASim "${SOURCES}")
+
+if(ENABLE_TESTS)
+add_executable(yasim yasim-test.cpp ${COMMON})
+add_executable(yasim-proptest proptest.cpp ${COMMON})
+
+target_link_libraries(yasim
+ ${SIMGEAR_CORE_LIBRARIES}
+ ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
-flightgear_component(YASim "${SOURCES}")
+target_link_libraries(yasim-proptest
+ ${SIMGEAR_CORE_LIBRARIES}
+ ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
-add_executable(yasim yasim-test.cpp)
+install(TARGETS yasim yasim-proptest RUNTIME DESTINATION bin)
-target_link_libraries(yasim
- fgYASim
- ${SIMGEAR_CORE_LIBRARIES}
- ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
+endif(ENABLE_TESTS)
-install(TARGETS yasim RUNTIME DESTINATION bin)