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   SRC
     18 )
     19 
     20 find_library(SUPERLU_LIBRARIES superlu PATHS $ENV{SUPERLUDIR} ${LIB_INSTALL_DIR} PATH_SUFFIXES lib)
     21   
     22 include(FindPackageHandleStandardArgs)
     23 find_package_handle_standard_args(SUPERLU DEFAULT_MSG
     24                                   SUPERLU_INCLUDES SUPERLU_LIBRARIES)
     25 
     26 mark_as_advanced(SUPERLU_INCLUDES SUPERLU_LIBRARIES)
     27