Create DUNE module file from CMake properties

That will save us from keeping the files in sync manually.
This commit is contained in:
Roland Kaufmann 2013-01-23 14:49:10 +01:00
parent f4350098ed
commit af014936cc
2 changed files with 7 additions and 2 deletions

View File

@ -226,6 +226,11 @@ configure_vars (
FILE CMAKE "${PROJECT_BINARY_DIR}/opm-core-config.cmake" FILE CMAKE "${PROJECT_BINARY_DIR}/opm-core-config.cmake"
APPEND "${opm-core_CONFIG_VARS}" 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 # pre-compile common headers; this is setup *after* the library to pick
# up extra options set there # up extra options set there
@ -261,7 +266,7 @@ install (
DESTINATION ${CMAKE_INSTALL_LIBDIR} DESTINATION ${CMAKE_INSTALL_LIBDIR}
) )
install ( install (
FILES dune.module FILES ${PROJECT_BINARY_DIR}/dune.module
DESTINATION ${CMAKE_INSTALL_LIBDIR_NOARCH}/dunecontrol/opm-core DESTINATION ${CMAKE_INSTALL_LIBDIR_NOARCH}/dunecontrol/opm-core
) )
message (STATUS "This build defaults to installing in ${CMAKE_INSTALL_PREFIX}") message (STATUS "This build defaults to installing in ${CMAKE_INSTALL_PREFIX}")

View File

@ -1,3 +1,3 @@
Module: opm-core Module: opm-core
Version: 2013.02 Version: @opm-core_VERSION_MAJOR@.@opm-core_VERSION_MINOR@
Depends: dune-common (>= 2.2) dune-istl (>= 2.2) Depends: dune-common (>= 2.2) dune-istl (>= 2.2)