From e2bff9a1db027e4337369c759061303528735a30 Mon Sep 17 00:00:00 2001
From: Markus Blatt <mblatt@dune-project.org>
Date: Mon, 23 Apr 2012 13:03:53 +0000
Subject: [PATCH] Install cmake modules and scripts.

[[Imported from SVN: r6652]]
---
 CMakeLists.txt               | 3 +++
 cmake/modules/CMakeLists.txt | 2 ++
 cmake/scripts/CMakeLists.txt | 2 ++
 3 files changed, 7 insertions(+)
 create mode 100644 cmake/modules/CMakeLists.txt
 create mode 100644 cmake/scripts/CMakeLists.txt

diff --git a/CMakeLists.txt b/CMakeLists.txt
index cfdb6a311..0e0869bce 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -129,6 +129,8 @@ add_subdirectory("bin")
 add_subdirectory("m4")
 add_subdirectory("am")
 add_subdirectory("doc")
+add_subdirectory("cmake/modules")
+add_subdirectory("cmake/scripts")
 
 # set some variables that are used in the pkg-config file
 set( CMAKE_FIND_LIBRARY_SUFFIXES ${_dune_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES})
@@ -172,3 +174,4 @@ install(FILES ${PROJECT_BINARY_DIR}/${DUNE_MOD_NAME}-config.cmake
 
 include(CTest)
 
+export(PACKAGE dune-common)
diff --git a/cmake/modules/CMakeLists.txt b/cmake/modules/CMakeLists.txt
new file mode 100644
index 000000000..13e7e4e1e
--- /dev/null
+++ b/cmake/modules/CMakeLists.txt
@@ -0,0 +1,2 @@
+file(GLOB modules *.cmake)
+install(FILES ${modules} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/cmake/modules)
diff --git a/cmake/scripts/CMakeLists.txt b/cmake/scripts/CMakeLists.txt
new file mode 100644
index 000000000..c5215df77
--- /dev/null
+++ b/cmake/scripts/CMakeLists.txt
@@ -0,0 +1,2 @@
+file(GLOB modules *.cmake)
+install(FILES ${modules} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/cmake/scripts)
-- 
GitLab