option(ENABLE_RTI "Set to ON to build SimGear with RTI support" OFF)
option(WITH_FGPANEL "Set to ON to build the fgpanel application" ON)
option(JPEG_FACTORY "Enable JPEG-factory support" OFF)
+option(ENABLE_TESTS "Set to OFF to disable building test applications" ON)
if (MSVC)
GET_FILENAME_COMPONENT(PARENT_DIR ${PROJECT_SOURCE_DIR} PATH)
include(FlightGearComponent)
set(COMMON
- Airplane.cpp
+ Airplane.cpp
Atmosphere.cpp
ControlMap.cpp
FGFDM.cpp
FGGround.cpp
)
-
flightgear_component(YASim "${SOURCES}")
+if(ENABLE_TESTS)
add_executable(yasim yasim-test.cpp ${COMMON})
add_executable(yasim-proptest proptest.cpp ${COMMON})
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
install(TARGETS yasim yasim-proptest RUNTIME DESTINATION bin)
+
+endif(ENABLE_TESTS)
+