diff --git a/configure.ac b/configure.ac index 80cdc50b695ce51b9227cd3922df2d91be7e44ad..a1c102a865c5c6ea9e088f5c08cee0a6b19a31b4 100644 --- a/configure.ac +++ b/configure.ac @@ -30,6 +30,7 @@ AC_CONFIG_FILES([Makefile dune/istl/test/Makefile dune/istl/Makefile dune/Makefile + lib/Makefile m4/Makefile dune-istl.pc]) AC_OUTPUT diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..9611bd22ba93a6911644441bc8ba41bc321cef8e --- /dev/null +++ b/lib/CMakeLists.txt @@ -0,0 +1,2 @@ +install(FILES duneistlam2cmake.lib + DESTINATION ${CMAKE_INSTALL_BINDIR}/../lib) diff --git a/lib/Makefile.am b/lib/Makefile.am new file mode 100644 index 0000000000000000000000000000000000000000..769b46386558f2942dd04a7330aea94e257d58b0 --- /dev/null +++ b/lib/Makefile.am @@ -0,0 +1,7 @@ +# $Id: $ +dunemodulelibdir=$(libdir) + +EXTRA_DIST = CMakeLists.txt duneistlam2cmake.lib +dunemodulelib_DATA = duneistlam2cmake.li + +include $(top_srcdir)/am/global-rules diff --git a/lib/duneistlam2cmake.lib b/lib/duneistlam2cmake.lib new file mode 100644 index 0000000000000000000000000000000000000000..1795bfb96d254b1ac00a17835006394117966150 --- /dev/null +++ b/lib/duneistlam2cmake.lib @@ -0,0 +1,20 @@ +# -*-sh-*- + +########################################## +### +### Function for converting configure options +### to CMake options for dune-common +### +########################################## + +# CMake Packages are case sensitive +# This is a list of packages whose names converted +# to lower case are used for configures +# --with-<package> or without-<package> options +# + +dune_istl_options_am2cmake(){ + local CMAKE_PACKAGES="ParMETIS SuperLU METIS" + default_am2cmake_options $CMAKE_PACKAGES + default_am2cmake_libraries $CMAKE_PACKAGES +}