diff --git a/dune/matrix-vector/CMakeLists.txt b/dune/matrix-vector/CMakeLists.txt
index fb8e1171a8b2f60152290a54546234f796b7f36b..9e4da1f4d79dbdc659c45e76d4fa2ef7cad28b0f 100644
--- a/dune/matrix-vector/CMakeLists.txt
+++ b/dune/matrix-vector/CMakeLists.txt
@@ -19,4 +19,7 @@ install(FILES
   tranpose.hh
   transformmatrix.hh
   triangularsolve.hh
-  DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dune/matrix-vector)
\ No newline at end of file
+  DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dune/matrix-vector)
+
+FILE(GLOB_RECURSE headers "./*.hh")
+add_custom_target(headers SOURCES ${headers})