diff --git a/cmake/Modules/Finddune-fem.cmake b/cmake/Modules/Finddune-fem.cmake index f0929848c..fecb226fa 100644 --- a/cmake/Modules/Finddune-fem.cmake +++ b/cmake/Modules/Finddune-fem.cmake @@ -22,6 +22,7 @@ find_opm_package ( "dune-common REQUIRED; dune-grid REQUIRED; dune-alugrid; + dune-polygongrid; ZLIB; ZOLTAN; METIS; diff --git a/cmake/Modules/Finddune-polygongrid.cmake b/cmake/Modules/Finddune-polygongrid.cmake new file mode 100644 index 000000000..e5125d714 --- /dev/null +++ b/cmake/Modules/Finddune-polygongrid.cmake @@ -0,0 +1,48 @@ +# - Find DUNE Fem library +# +# Defines the following variables: +# dune-polygongrid_INCLUDE_DIRS Directory of header files +# dune-polygongrid_LIBRARIES Directory of shared object files +# dune-polygongrid_DEFINITIONS Defines that must be set to compile +# dune-alugrid_CONFIG_VARS List of defines that should be in config.h +# HAVE_DUNE_POLYGONGRID Binary value to use in config.h + +# Copyright (C) 2015 IRIS AS +# This code is licensed under The GNU General Public License v3.0 + +include (OpmPackage) +find_opm_package ( + # module name + "dune-polygongrid" + + # dependencies + # TODO: we should probe for all the HAVE_* values listed below; + # however, we don't actually use them in our implementation, so + # we just include them to forward here in case anyone else does + "dune-common REQUIRED; + " + # header to search for + "dune/polygongrid/mesh.hh" + + # library to search for + "dunepolygongrid" + + # defines to be added to compilations + "" + + # test program +"#include +int main (void) { + return 0; +} +" +# config variables +# config variables + "HAVE_DUNE_POLYGONGRID + ") + +#debug_find_vars ("dune-polygongrid") + +# make version number available in config.h +include (UseDuneVer) +find_dune_version ("dune" "polygongrid")