OSDN Git Service

M CMakeLists.txt: build testing only if BUILD_TESTING is true
authornogu <nogu@3964cfc2-352b-0410-b06c-9ff7d3e98643>
Thu, 5 Mar 2009 09:44:17 +0000 (09:44 +0000)
committernogu <nogu@3964cfc2-352b-0410-b06c-9ff7d3e98643>
Thu, 5 Mar 2009 09:44:17 +0000 (09:44 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/cueplot/trunk@972 3964cfc2-352b-0410-b06c-9ff7d3e98643

CMakeLists.txt

index d48b0c7..8f0f03e 100644 (file)
@@ -4,7 +4,10 @@ cmake_minimum_required(VERSION 2.4.0)
 
 find_package(Qt4 REQUIRED)
 
-enable_testing()
-
 add_subdirectory(src)
-add_subdirectory(tests)
+
+if (BUILD_TESTING)
+       enable_testing()
+       add_subdirectory(tests)
+endif (BUILD_TESTING)
+