From 41e33db9d17e4d295bf12958398fc3758d3e3a5b Mon Sep 17 00:00:00 2001
From: Mattias Ellert <mattias.ellert@physics.uu.se>
Date: Tue, 19 Jun 2018 09:20:21 +0200
Subject: [PATCH] Include test directory using ROOT_ADD_TEST_SUBDIRECTORY
---
graf2d/gpadv7/CMakeLists.txt | 5 +----
graf2d/primitives/CMakeLists.txt | 5 ++---
2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/graf2d/gpadv7/CMakeLists.txt b/graf2d/gpadv7/CMakeLists.txt
index 525ce415451..9d6870231f3 100644
--- a/graf2d/gpadv7/CMakeLists.txt
+++ b/graf2d/gpadv7/CMakeLists.txt
@@ -11,7 +11,4 @@ ROOT_STANDARD_LIBRARY_PACKAGE(ROOTGpadv7
DICTIONARY_OPTIONS "-writeEmptyRootPCM"
DEPENDENCIES ROOTGraphicsPrimitives)
-
-if(testing)
- ROOT_ADD_TEST_SUBDIRECTORY(v7/test)
-endif()
+ROOT_ADD_TEST_SUBDIRECTORY(v7/test)
diff --git a/graf2d/primitives/CMakeLists.txt b/graf2d/primitives/CMakeLists.txt
index f491eb70a90..d33597805d8 100644
--- a/graf2d/primitives/CMakeLists.txt
+++ b/graf2d/primitives/CMakeLists.txt
@@ -11,6 +11,5 @@ ROOT_STANDARD_LIBRARY_PACKAGE(ROOTGraphicsPrimitives
SOURCES ${src}
DICTIONARY_OPTIONS "-writeEmptyRootPCM"
DEPENDENCIES RIO Core)
-if(testing)
- add_subdirectory(v7/test)
-endif()
+
+ROOT_ADD_TEST_SUBDIRECTORY(v7/test)