Move 'enable test' to CMakeListsGlobal.cmake
authorHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Thu, 17 May 2018 11:50:26 +0000 (13:50 +0200)
committerHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Thu, 17 May 2018 11:50:26 +0000 (13:50 +0200)
CMakeLists.txt
CMakeListsGlobal.cmake

index 522dfa3..02a20f4 100644 (file)
@@ -97,10 +97,6 @@ add_definitions(-DBASEPATH_LENGTH=${BASELENGTH})
 # include build helper
 include (cmake/declare_library.cmake)
 
-if (NOT OONF_NO_TESTING)
-    ENABLE_TESTING()
-endif (NOT OONF_NO_TESTING)
-
 # define static and dynamic target
 add_custom_target(static)
 add_custom_target(dynamic)
index 697e717..708d9e1 100644 (file)
@@ -5,6 +5,10 @@ endif()
 
 project (OONF C)
 
+if (NOT OONF_NO_TESTING)
+    ENABLE_TESTING()
+endif (NOT OONF_NO_TESTING)
+
 #####################################
 #### set path to source for apps ####
 #####################################