From 22c166052081fa32ecfe1aaf60d2aa1af72bc86d Mon Sep 17 00:00:00 2001
From: Frank Gaede <frank.gaede@desy.de>
Date: Thu, 9 Jan 2014 15:53:03 +0000
Subject: [PATCH]  - activate testing

---
 CMakeLists.txt | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 20b473874..0453d7920 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,8 +46,13 @@ if(DD4HEP_USE_XERCESC)
 endif()
 
 #---Testing-------------------------------------------------------------------------
-include(CTest)
-enable_testing()
+if(BUILD_TESTING)
+
+  include(CTest)
+  enable_testing()
+  add_subdirectory(DDTest)
+
+endif(BUILD_TESTING)
 
 #---Documentation-------------------------------------------------------------------
 
-- 
GitLab