aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/FindSuperLU.cmake
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2008-10-20 10:43:11 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2008-10-20 10:43:11 +0000
commitfa27cd1ed0a387a52079e63444137feb2aeab66f (patch)
tree95af6901864c5bbaffb884fc85c8e028e7f9ded5 /cmake/FindSuperLU.cmake
parentf44316e5f8e949b6d66dd4bc3a6ae84eeb866652 (diff)
* add cmake files to find (optional) supported libraries
* add unit tests for sparse cholesky
Diffstat (limited to 'cmake/FindSuperLU.cmake')
-rw-r--r--cmake/FindSuperLU.cmake20
1 files changed, 20 insertions, 0 deletions
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)