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:
@@ -10,16 +10,15 @@
|
|||||||
# Copyright (C) 2013 Uni Research AS
|
# Copyright (C) 2013 Uni Research AS
|
||||||
# This code is licensed under The GNU General Public License v3.0
|
# This code is licensed under The GNU General Public License v3.0
|
||||||
|
|
||||||
|
include (dune-cornerpoint-prereqs)
|
||||||
include (OpmPackage)
|
include (OpmPackage)
|
||||||
find_opm_package (
|
find_opm_package (
|
||||||
# module name
|
# module name
|
||||||
"dune-cornerpoint"
|
"dune-cornerpoint"
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
"dune-common REQUIRED;
|
"${dune-cornerpoint_DEPS}"
|
||||||
dune-grid REQUIRED;
|
|
||||||
opm-core REQUIRED
|
|
||||||
"
|
|
||||||
# header to search for
|
# header to search for
|
||||||
"dune/grid/CpGrid.hpp"
|
"dune/grid/CpGrid.hpp"
|
||||||
|
|
||||||
@@ -37,6 +36,7 @@ int main (void) {
|
|||||||
}
|
}
|
||||||
"
|
"
|
||||||
# config variables
|
# config variables
|
||||||
"")
|
"${dune-cornerpoint_CONFIG_VAR}"
|
||||||
|
)
|
||||||
|
|
||||||
#debug_find_vars ("dune-cornerpoint")
|
#debug_find_vars ("dune-cornerpoint")
|
||||||
|
|||||||
@@ -11,24 +11,15 @@
|
|||||||
# This code is licensed under The GNU General Public License v3.0
|
# This code is licensed under The GNU General Public License v3.0
|
||||||
|
|
||||||
# use the generic find routine
|
# use the generic find routine
|
||||||
|
include (opm-core-prereqs)
|
||||||
include (OpmPackage)
|
include (OpmPackage)
|
||||||
find_opm_package (
|
find_opm_package (
|
||||||
# module name
|
# module name
|
||||||
"opm-core"
|
"opm-core"
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
"C99;
|
"${opm-core_DEPS}"
|
||||||
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
|
|
||||||
"
|
|
||||||
# header to search for
|
# header to search for
|
||||||
"opm/core/grid.h"
|
"opm/core/grid.h"
|
||||||
|
|
||||||
@@ -48,13 +39,7 @@ int main (void) {
|
|||||||
}
|
}
|
||||||
"
|
"
|
||||||
# config variables
|
# config variables
|
||||||
"HAVE_AGMG;
|
"${opm-core_CONFIG_VAR}"
|
||||||
HAVE_DUNE_ISTL;
|
)
|
||||||
HAVE_DYNAMIC_BOOST_TEST;
|
|
||||||
HAVE_ERT;
|
|
||||||
HAVE_SUITESPARSE_UMFPACK_H;
|
|
||||||
HAVE_NULLPTR;
|
|
||||||
HAVE_STATIC_ASSERT
|
|
||||||
")
|
|
||||||
include (UseDynamicBoost)
|
include (UseDynamicBoost)
|
||||||
#debug_find_vars ("opm-core")
|
#debug_find_vars ("opm-core")
|
||||||
|
|||||||
@@ -10,15 +10,15 @@
|
|||||||
# Copyright (C) 2013 Uni Research AS
|
# Copyright (C) 2013 Uni Research AS
|
||||||
# This code is licensed under The GNU General Public License v3.0
|
# This code is licensed under The GNU General Public License v3.0
|
||||||
|
|
||||||
|
include (opm-polymer-prereqs)
|
||||||
include (OpmPackage)
|
include (OpmPackage)
|
||||||
find_opm_package (
|
find_opm_package (
|
||||||
# module name
|
# module name
|
||||||
"opm-polymer"
|
"opm-polymer"
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
"ERT;
|
"${opm-polymer_DEPS}"
|
||||||
opm-core REQUIRED
|
|
||||||
"
|
|
||||||
# header to search for
|
# header to search for
|
||||||
"opm/polymer/PolymerState.hpp"
|
"opm/polymer/PolymerState.hpp"
|
||||||
|
|
||||||
@@ -36,6 +36,7 @@ int main (void) {
|
|||||||
}
|
}
|
||||||
"
|
"
|
||||||
# config variables
|
# config variables
|
||||||
"HAVE_ERT")
|
"${opm-polymer_CONFIG_VAR}"
|
||||||
|
)
|
||||||
|
|
||||||
#debug_find_vars ("opm-polymer")
|
#debug_find_vars ("opm-polymer")
|
||||||
|
|||||||
@@ -10,18 +10,15 @@
|
|||||||
# Copyright (C) 2013 Uni Research AS
|
# Copyright (C) 2013 Uni Research AS
|
||||||
# This code is licensed under The GNU General Public License v3.0
|
# This code is licensed under The GNU General Public License v3.0
|
||||||
|
|
||||||
|
include (opm-porsol-prereqs)
|
||||||
include (OpmPackage)
|
include (OpmPackage)
|
||||||
find_opm_package (
|
find_opm_package (
|
||||||
# module name
|
# module name
|
||||||
"opm-porsol"
|
"opm-porsol"
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
"dune-common REQUIRED;
|
"${opm-porsol_DEPS}"
|
||||||
dune-grid REQUIRED;
|
|
||||||
dune-istl REQUIRED;
|
|
||||||
opm-core REQUIRED;
|
|
||||||
dune-cornerpoint REQUIRED
|
|
||||||
"
|
|
||||||
# header to search for
|
# header to search for
|
||||||
"opm/porsol/mimetic/IncompFlowSolverHybrid.hpp"
|
"opm/porsol/mimetic/IncompFlowSolverHybrid.hpp"
|
||||||
|
|
||||||
@@ -38,6 +35,7 @@ int main (void) {
|
|||||||
}
|
}
|
||||||
"
|
"
|
||||||
# config variables
|
# config variables
|
||||||
"HAVE_VALGRIND")
|
"${opm-porsol_CONFIG_VAR}"
|
||||||
|
)
|
||||||
|
|
||||||
#debug_find_vars ("opm-porsol")
|
#debug_find_vars ("opm-porsol")
|
||||||
|
|||||||
@@ -10,19 +10,15 @@
|
|||||||
# Copyright (C) 2013 Uni Research AS
|
# Copyright (C) 2013 Uni Research AS
|
||||||
# This code is licensed under The GNU General Public License v3.0
|
# This code is licensed under The GNU General Public License v3.0
|
||||||
|
|
||||||
|
include (opm-upscaling-prereqs)
|
||||||
include (OpmPackage)
|
include (OpmPackage)
|
||||||
find_opm_package (
|
find_opm_package (
|
||||||
# module name
|
# module name
|
||||||
"opm-upscaling"
|
"opm-upscaling"
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
"dune-common REQUIRED;
|
"${opm-upscaling_DEPS}"
|
||||||
dune-grid REQUIRED;
|
|
||||||
dune-istl REQUIRED;
|
|
||||||
opm-core REQUIRED;
|
|
||||||
dune-cornerpoint REQUIRED;
|
|
||||||
opm-porsol REQUIRED
|
|
||||||
"
|
|
||||||
# header to search for
|
# header to search for
|
||||||
"opm/upscaling/SinglePhaseUpscaler.hpp"
|
"opm/upscaling/SinglePhaseUpscaler.hpp"
|
||||||
|
|
||||||
@@ -39,6 +35,7 @@ int main (void) {
|
|||||||
}
|
}
|
||||||
"
|
"
|
||||||
# config variables
|
# config variables
|
||||||
"HAVE_SUPERLU")
|
"${opm-upscaling_CONFIG_VAR}"
|
||||||
|
)
|
||||||
|
|
||||||
#debug_find_vars ("opm-upscaling")
|
#debug_find_vars ("opm-upscaling")
|
||||||
|
|||||||
Reference in New Issue
Block a user