Create DUNE module file from CMake properties
That will save us from keeping the files in sync manually.
This commit is contained in:
parent
f4350098ed
commit
af014936cc
@ -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}")
|
||||
|
@ -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)
|
Loading…
Reference in New Issue
Block a user