Get prerequisites from a separate "header" file

Note that the variable containing the dependencies must be expanded
inside quotes; otherwise the list will spill into the argument list!
This commit is contained in:
Roland Kaufmann
2013-06-25 23:49:36 +02:00
parent 25ae6d5cb7
commit 4b305a0822
5 changed files with 25 additions and 44 deletions

View File

@@ -10,16 +10,15 @@
# Copyright (C) 2013 Uni Research AS
# This code is licensed under The GNU General Public License v3.0
include (dune-cornerpoint-prereqs)
include (OpmPackage)
find_opm_package (
# module name
"dune-cornerpoint"
# dependencies
"dune-common REQUIRED;
dune-grid REQUIRED;
opm-core REQUIRED
"
"${dune-cornerpoint_DEPS}"
# header to search for
"dune/grid/CpGrid.hpp"
@@ -37,6 +36,7 @@ int main (void) {
}
"
# config variables
"")
"${dune-cornerpoint_CONFIG_VAR}"
)
#debug_find_vars ("dune-cornerpoint")

View File

@@ -11,24 +11,15 @@
# This code is licensed under The GNU General Public License v3.0
# use the generic find routine
include (opm-core-prereqs)
include (OpmPackage)
find_opm_package (
# module name
"opm-core"
# dependencies
"C99;
CXX11Features;
Boost 1.39.0
COMPONENTS date_time filesystem system unit_test_framework signals REQUIRED;
BLAS REQUIRED;
LAPACK REQUIRED;
SuiteSparse COMPONENTS umfpack;
SuperLU;
TinyXML;
ERT;
dune-istl
"
"${opm-core_DEPS}"
# header to search for
"opm/core/grid.h"
@@ -48,13 +39,7 @@ int main (void) {
}
"
# config variables
"HAVE_AGMG;
HAVE_DUNE_ISTL;
HAVE_DYNAMIC_BOOST_TEST;
HAVE_ERT;
HAVE_SUITESPARSE_UMFPACK_H;
HAVE_NULLPTR;
HAVE_STATIC_ASSERT
")
"${opm-core_CONFIG_VAR}"
)
include (UseDynamicBoost)
#debug_find_vars ("opm-core")

View File

@@ -10,15 +10,15 @@
# Copyright (C) 2013 Uni Research AS
# This code is licensed under The GNU General Public License v3.0
include (opm-polymer-prereqs)
include (OpmPackage)
find_opm_package (
# module name
"opm-polymer"
# dependencies
"ERT;
opm-core REQUIRED
"
"${opm-polymer_DEPS}"
# header to search for
"opm/polymer/PolymerState.hpp"
@@ -36,6 +36,7 @@ int main (void) {
}
"
# config variables
"HAVE_ERT")
"${opm-polymer_CONFIG_VAR}"
)
#debug_find_vars ("opm-polymer")

View File

@@ -10,18 +10,15 @@
# Copyright (C) 2013 Uni Research AS
# This code is licensed under The GNU General Public License v3.0
include (opm-porsol-prereqs)
include (OpmPackage)
find_opm_package (
# module name
"opm-porsol"
# dependencies
"dune-common REQUIRED;
dune-grid REQUIRED;
dune-istl REQUIRED;
opm-core REQUIRED;
dune-cornerpoint REQUIRED
"
"${opm-porsol_DEPS}"
# header to search for
"opm/porsol/mimetic/IncompFlowSolverHybrid.hpp"
@@ -38,6 +35,7 @@ int main (void) {
}
"
# config variables
"HAVE_VALGRIND")
"${opm-porsol_CONFIG_VAR}"
)
#debug_find_vars ("opm-porsol")

View File

@@ -10,19 +10,15 @@
# Copyright (C) 2013 Uni Research AS
# This code is licensed under The GNU General Public License v3.0
include (opm-upscaling-prereqs)
include (OpmPackage)
find_opm_package (
# module name
"opm-upscaling"
# dependencies
"dune-common REQUIRED;
dune-grid REQUIRED;
dune-istl REQUIRED;
opm-core REQUIRED;
dune-cornerpoint REQUIRED;
opm-porsol REQUIRED
"
"${opm-upscaling_DEPS}"
# header to search for
"opm/upscaling/SinglePhaseUpscaler.hpp"
@@ -39,6 +35,7 @@ int main (void) {
}
"
# config variables
"HAVE_SUPERLU")
"${opm-upscaling_CONFIG_VAR}"
)
#debug_find_vars ("opm-upscaling")