Home | History | Annotate | Download | only in cmake
      1 
      2 # Umfpack lib usually requires linking to a blas library.
      3 # It is up to the user of this module to find a BLAS and link to it.
      4 
      5 if (SUPERLU_INCLUDES AND SUPERLU_LIBRARIES)
      6   set(SUPERLU_FIND_QUIETLY TRUE)
      7 endif (SUPERLU_INCLUDES AND SUPERLU_LIBRARIES)
      8 
      9 find_path(SUPERLU_INCLUDES
     10   NAMES
     11   supermatrix.h
     12   PATHS
     13   $ENV{SUPERLUDIR}
     14   ${INCLUDE_INSTALL_DIR}
     15   PATH_SUFFIXES
     16   superlu
     17 )
     18 
     19 find_library(SUPERLU_LIBRARIES superlu PATHS $ENV{SUPERLUDIR} ${LIB_INSTALL_DIR})
     20   
     21 include(FindPackageHandleStandardArgs)
     22 find_package_handle_standard_args(SUPERLU DEFAULT_MSG
     23                                   SUPERLU_INCLUDES SUPERLU_LIBRARIES)
     24 
     25 mark_as_advanced(SUPERLU_INCLUDES SUPERLU_LIBRARIES)
     26