]> git.mxchange.org Git - flightgear.git/commitdiff
Add CMake option to disable building test applications.
authorThorstenB <brehmt@gmail.com>
Sun, 8 Apr 2012 16:49:11 +0000 (18:49 +0200)
committerThorstenB <brehmt@gmail.com>
Sun, 8 Apr 2012 16:49:11 +0000 (18:49 +0200)
CMakeLists.txt
src/FDM/YASim/CMakeLists.txt

index 6df4e222f13c61459e9cb00f3269c73b23171aba..29588c184ed9bebd494b69f353ea4829334e2dcb 100644 (file)
@@ -111,6 +111,7 @@ option(ENABLE_LIBSVN     "Set to ON to build FlightGear/terrasync with libsvncli
 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)
index dcd4ee5a9bb9970b0ed3e9d225ffdf2ea75280ed..352a78b09bfff709dc235dd4e2294952c1761e6d 100644 (file)
@@ -1,7 +1,7 @@
 include(FlightGearComponent)
 
 set(COMMON
-    Airplane.cpp
+       Airplane.cpp
        Atmosphere.cpp
        ControlMap.cpp
        FGFDM.cpp
@@ -34,9 +34,9 @@ set(SOURCES
        FGGround.cpp
        )
 
-
 flightgear_component(YASim  "${SOURCES}")
 
+if(ENABLE_TESTS)
 add_executable(yasim yasim-test.cpp ${COMMON})
 add_executable(yasim-proptest proptest.cpp ${COMMON})
 
@@ -49,3 +49,6 @@ target_link_libraries(yasim-proptest
                ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
 
 install(TARGETS yasim yasim-proptest RUNTIME DESTINATION bin)
+
+endif(ENABLE_TESTS)
+