From af014936ccf8402b962af76e859db5a3aca7605a Mon Sep 17 00:00:00 2001 From: Roland Kaufmann Date: Wed, 23 Jan 2013 14:49:10 +0100 Subject: [PATCH] Create DUNE module file from CMake properties That will save us from keeping the files in sync manually. --- CMakeLists.txt | 7 ++++++- dune.module => dune.module.in | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) rename dune.module => dune.module.in (52%) diff --git a/CMakeLists.txt b/CMakeLists.txt index ac9ee177..a22e5b51 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -226,6 +226,11 @@ configure_vars ( FILE CMAKE "${PROJECT_BINARY_DIR}/opm-core-config.cmake" APPEND "${opm-core_CONFIG_VARS}" ) +configure_file ( + ${PROJECT_SOURCE_DIR}/dune.module.in + ${PROJECT_BINARY_DIR}/dune.module + @ONLY + ) # pre-compile common headers; this is setup *after* the library to pick # up extra options set there @@ -261,7 +266,7 @@ install ( DESTINATION ${CMAKE_INSTALL_LIBDIR} ) install ( - FILES dune.module + FILES ${PROJECT_BINARY_DIR}/dune.module DESTINATION ${CMAKE_INSTALL_LIBDIR_NOARCH}/dunecontrol/opm-core ) message (STATUS "This build defaults to installing in ${CMAKE_INSTALL_PREFIX}") diff --git a/dune.module b/dune.module.in similarity index 52% rename from dune.module rename to dune.module.in index e55acd1e..bb3998c9 100644 --- a/dune.module +++ b/dune.module.in @@ -1,3 +1,3 @@ Module: opm-core -Version: 2013.02 +Version: @opm-core_VERSION_MAJOR@.@opm-core_VERSION_MINOR@ Depends: dune-common (>= 2.2) dune-istl (>= 2.2)