From fa27cd1ed0a387a52079e63444137feb2aeab66f Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 20 Oct 2008 10:43:11 +0000 Subject: * add cmake files to find (optional) supported libraries * add unit tests for sparse cholesky --- cmake/FindSuperLU.cmake | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 cmake/FindSuperLU.cmake (limited to 'cmake/FindSuperLU.cmake') diff --git a/cmake/FindSuperLU.cmake b/cmake/FindSuperLU.cmake new file mode 100644 index 000000000..9d12ebd77 --- /dev/null +++ b/cmake/FindSuperLU.cmake @@ -0,0 +1,20 @@ + +if (SUPERLU_INCLUDES AND SUPERLU_LIBRARIES) + set(SUPERLU_FIND_QUIETLY TRUE) +endif (SUPERLU_INCLUDES AND SUPERLU_LIBRARIES) + +find_path(SUPERLU_INCLUDES + NAMES + superlu/supermatrix.h + PATHS + $ENV{SUPERLUDIR} + ${INCLUDE_INSTALL_DIR} +) + +find_library(SUPERLU_LIBRARIES superlu PATHS $ENV{SUPERLUDIR} ${LIB_INSTALL_DIR}) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(SUPERLU DEFAULT_MSG + SUPERLU_INCLUDES SUPERLU_LIBRARIES) + +mark_as_advanced(SUPERLU_INCLUDES SUPERLU_LIBRARIES) -- cgit v1.2.3