Search and replace opm-core with opm-upscaling

Add dependencies that are specific for this library as well as doing
the textual replacement in the configuration file.
This commit is contained in:
Roland Kaufmann 2013-02-22 14:47:08 +01:00
parent 9b8fe95846
commit 15f3246ea5

View File

@ -2,17 +2,19 @@
# vim: set filetype=cmake autoindent tabstop=2 shiftwidth=2 noexpandtab softtabstop=2 nowrap:
# key information about the library
set (project "opm-core")
set (project "opm-upscaling")
set (${project}_NAME "${project}")
set (${project}_DESCRIPTION "Open Porous Media Initiative Core Library")
set (${project}_DESCRIPTION "DUNE module containing single-phase and steady-state upscaling methods")
set (${project}_DIR "opm")
set (${project}_VERSION_MAJOR 1)
set (${project}_VERSION_MINOR 0)
set (doxy_dir "Documentation")
set (doxy_dir "doc/doxygen")
# defines that must be present in config.h for our headers
set (${project}_CONFIG_VAR
HAVE_DYNAMIC_BOOST_TEST
HAVE_LAPACK
HAVE_SUPERLU
)
# dependencies
@ -30,7 +32,12 @@ set (${project}_DEPS
# solver
"SUPERLU"
# DUNE dependency
"dune-istl"
"dune-common REQUIRED;
dune-istl REQUIRED;
dune-grid REQUIRED;
opm-core REQUIRED;
dune-cornerpoint REQUIRED;
opm-porsol REQUIRED"
)
# C++ project
@ -128,7 +135,7 @@ configure_vars (
include (UseFortranWrappers)
define_fc_func (
APPEND ${CONFIG_H}
IF HAVE_AGMG # HAVE_BLAS HAVE_LAPACK
IF HAVE_LAPACK
)
# compile main library; pull in all required includes and libraries