roentgen 3969d9
# preferred homebrew's directories.
fukasawa e60969
find_path(SUPERLU_INCLUDE_DIR NAMES slu_Cnames.h HINTS ${THIRDPARTY_LIBS_HINTS} PATH_SUFFIXES superlu43/4.3_1/include/superlu superlu/SuperLU_4.1/include)
fukasawa e60969
find_library(SUPERLU_LIBRARY NAMES libsuperlu.a libsuperlu_4.1.a HINTS ${THIRDPARTY_LIBS_HINTS} PATH_SUFFIXES superlu43/4.3_1/lib superlu)
roentgen 3969d9
roentgen 3969d9
message("***** SuperLU Header path:" ${SUPERLU_INCLUDE_DIR})
Campbell Barton bf80fb
message("***** SuperLU Library path:" ${SUPERLU_LIBRARY})
roentgen 3969d9
roentgen 3969d9
set(SUPERLU_NAMES ${SUPERLU_NAMES} SuperLU)
roentgen 3969d9
roentgen 3969d9
include(FindPackageHandleStandardArgs)
roentgen 3969d9
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SuperLU DEFAULT_MSG SUPERLU_LIBRARY SUPERLU_INCLUDE_DIR)
roentgen 3969d9
roentgen 3969d9
if(SUPERLU_FOUND)
roentgen 3969d9
    set(SUPERLU_LIBRARIES ${SUPERLU_LIBRARY})
roentgen 3969d9
endif()
roentgen 3969d9
roentgen 3969d9
mark_as_advanced(SUPERLU_LIBRARY SUPERLU_INCLUDE_DIR)