From 0d8466d3178f8dc42d2bf7c55667468b94680864 Mon Sep 17 00:00:00 2001 From: Desire NUENTSA Date: Thu, 8 Mar 2012 18:59:08 +0100 Subject: Adding an interface to PaStiX, the multithreaded and distributed linear solver --- cmake/FindMetis.cmake | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 cmake/FindMetis.cmake (limited to 'cmake/FindMetis.cmake') diff --git a/cmake/FindMetis.cmake b/cmake/FindMetis.cmake new file mode 100644 index 000000000..e4d6ef258 --- /dev/null +++ b/cmake/FindMetis.cmake @@ -0,0 +1,24 @@ +# Pastix requires METIS or METIS (partitioning and reordering tools) + +if (METIS_INCLUDES AND METIS_LIBRARIES) + set(METIS_FIND_QUIETLY TRUE) +endif (METIS_INCLUDES AND METIS_LIBRARIES) + +find_path(METIS_INCLUDES + NAMES + metis.h + PATHS + $ENV{METISDIR} + ${INCLUDE_INSTALL_DIR} + PATH_SUFFIXES + metis +) + + +find_library(METIS_LIBRARIES metis PATHS $ENV{METISDIR} ${LIB_INSTALL_DIR}) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(METIS DEFAULT_MSG + METIS_INCLUDES METIS_LIBRARIES) + +mark_as_advanced(METIS_INCLUDES METIS_LIBRARIES) -- cgit v1.2.3