From e038db8717d9536ae4f73d3fddb83cd89a64f763 Mon Sep 17 00:00:00 2001
From: Rene Milk <rene.milk@uni-muenster.de>
Date: Mon, 12 May 2014 15:26:56 +0200
Subject: [PATCH] [cmake] ensure test binaries are build with dune's own make
 test

---
 cmake/modules/DuneUtils.cmake | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cmake/modules/DuneUtils.cmake b/cmake/modules/DuneUtils.cmake
index a6018e97f..b177a9112 100644
--- a/cmake/modules/DuneUtils.cmake
+++ b/cmake/modules/DuneUtils.cmake
@@ -125,6 +125,8 @@ macro(BEGIN_TESTCASES)
 endmacro(BEGIN_TESTCASES)
 
 macro(END_TESTCASES)
+    add_directory_test_target(_test_target)
+    add_dependencies(${_test_target} ${testnames})
 	add_custom_target(test_binaries DEPENDS ${testnames})
 	add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}
                   DEPENDS test_binaries)
-- 
GitLab