1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
# -*- mode: cmake; tab-width: 2; indent-tabs-mode: t; truncate-lines: t; compile-command: "cmake -Wdev" -*-
# vim: set filetype=cmake autoindent tabstop=2 shiftwidth=2 noexpandtab softtabstop=2 nowrap:
# features that may be used by some packages (Fortran wrappers
# for instance), and this set options for, but which is included
# conditionally and thus does not exist in other packages
set (FEATURE_VARS
USE_UNDERSCORING
)
# emulate the with-xxx feature of autotools to not give warnings
# if we specify the directories of packages that are known to the
# family but not necessarily used
# pick package names from these; opm-xxx, dune-xxx
set (KNOWN_FAMILIES
opm
dune
)
# variables to test; xxx_DIR, xxx_ROOT
set (KNOWN_VARS
DIR
ROOT
)
set (KNOWN_opm_PKGS
common
parser
material
core
grid
output
simulators
upscaling
verteq
)
set (KNOWN_dune_PKGS
common
geometry
grid
istl
localfunctions
)
foreach (family IN ITEMS ${KNOWN_FAMILIES})
foreach (package IN ITEMS ${KNOWN_${family}_PKGS})
foreach (var IN ITEMS ${KNOWN_VARS})
# just "use" the variable, so we don't get warnings
set (_dummy ${${family}-${package}_${var}})
endforeach (var)
endforeach (package)
endforeach (family)
foreach (feature IN ITEMS ${FEATURE_VARS})
set (_dummy ${${feature}})
endforeach (feature)
|