From f34d750175335c5c80397a45dfbf880125974496 Mon Sep 17 00:00:00 2001
From: Tobias Leibner <tobias.leibner@uni-muenster.de>
Date: Thu, 1 Sep 2016 10:21:28 +0200
Subject: [PATCH] [cmake] add COMMON_HEADER to test sources to fix header
 listing and remove redundant line

---
 cmake/modules/DuneUtils.cmake      | 2 +-
 dune/xt/common/test/CMakeLists.txt | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/cmake/modules/DuneUtils.cmake b/cmake/modules/DuneUtils.cmake
index 077cdd1a7..1855f0f8d 100644
--- a/cmake/modules/DuneUtils.cmake
+++ b/cmake/modules/DuneUtils.cmake
@@ -34,7 +34,7 @@ macro(BEGIN_TESTCASES)
 		get_filename_component(testbase ${source} NAME_WE)
                 if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${testbase}.mini )
 		    set( inifile ${testbase}.mini)
-    		    dune_add_system_test(SOURCE ${testbase}.cc
+                    dune_add_system_test(SOURCE ${testbase}.cc ${COMMON_HEADER}
                                          INIFILE ${inifile}
                                          BASENAME test_${testbase}
                                          CREATED_TARGETS targetlist_${testbase}
diff --git a/dune/xt/common/test/CMakeLists.txt b/dune/xt/common/test/CMakeLists.txt
index 96c07c228..4e84b68b9 100644
--- a/dune/xt/common/test/CMakeLists.txt
+++ b/dune/xt/common/test/CMakeLists.txt
@@ -11,8 +11,6 @@ enable_testing()
 
 DEPENDENCYCHECK( ${xtcommon} )
 
-set_source_files_properties( ${DUNE_HEADERS} PROPERTIES HEADER_FILE_ONLY 1 )
-
 BEGIN_TESTCASES(dunextcommon)
 
 END_TESTCASES()
-- 
GitLab