Commit e764f856 authored by Jan Möbius's avatar Jan Möbius

Added superlu lib finder

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6237 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 96da54d6
if (SUPERLU_INCLUDE_DIR)
# in cache already
set(SUPERLU_FOUND TRUE)
else (SUPERLU_INCLUDE_DIR)
if (WIN32)
find_path(SUPERLU_INCLUDE_DIR NAMES supermatrix.h
PREFIXES SRC
PATHS
"C:\\libs\\SuperLU_3.0"
${SUPERLU_INCLUDE_PATH}
)
ELSE(WIN32)
find_path(SUPERLU_INCLUDE_DIR NAMES supermatrix.h
PATHS
/usr/include/superlu
${SUPERLU_INCLUDE_PATH}
)
find_library( SUPERLU_LIBRARY
superlu
PATHS /usr/lib )
ENDIF()
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SUPERLU DEFAULT_MSG SUPERLU_INCLUDE_DIR )
endif(SUPERLU_INCLUDE_DIR)
if (SUPERLU_INCLUDE_DIR)
# in cache already
set(SUPERLU_FOUND TRUE)
else (SUPERLU_INCLUDE_DIR)
if (WIN32)
find_path(SUPERLU_INCLUDE_DIR NAMES supermatrix.h
PREFIXES SRC
PATHS
"C:\\libs\\SuperLU_3.0"
${SUPERLU_INCLUDE_PATH}
)
find_library( SUPERLU_LIBRARY
SuperLU
PATHS "C:\\libs\\SuperLU_3.0\\lib" )
ELSE(WIN32)
find_path(SUPERLU_INCLUDE_DIR NAMES supermatrix.h
PATHS
/usr/include/superlu
${SUPERLU_INCLUDE_PATH}
)
find_library( SUPERLU_LIBRARY
superlu
PATHS /usr/lib )
ENDIF()
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SUPERLU DEFAULT_MSG SUPERLU_INCLUDE_DIR )
endif(SUPERLU_INCLUDE_DIR)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment