Page MenuHomec4science

FindMumps.cmake
No OneTemporary

File Metadata

Created
Thu, Nov 21, 12:24

FindMumps.cmake

#===============================================================================
# @file FindMumps.cmake
# @author Nicolas Richart <nicolas.richart@epfl.ch>
# @date Sun Dec 12 18:35:02 2010
#
# @brief The find_package file for the Mumps solver
#
# @section LICENSE
#
# <insert license here>
#
#===============================================================================
#===============================================================================
find_library(MUMPS_LIBRARY_DMUMPS NAME dmumps
PATHS ${MUMPS_DIR} /usr
PATH_SUFFIXES lib
)
find_library(MUMPS_LIBRARY_COMMON NAME mumps_common
PATHS ${MUMPS_DIR}
PATH_SUFFIXES lib
)
find_library(MUMPS_LIBRARY_PORD NAME pord
PATHS ${MUMPS_DIR}
PATH_SUFFIXES lib
)
find_path(MUMPS_INCLUDE_PATH dmumps_c.h
PATHS ${MUMPS_DIR}
PATH_SUFFIXES include
)
set(MUMPS_LIBRARIES
${MUMPS_LIB_COMMON}
${MUMPS_LIB_DMUMPS}
${MUMPS_LIB_PORD}
CACHE INTERNAL "Libraries for mumps" FORCE
)
#===============================================================================
mark_as_advanced(MUMPS_LIBRARY_COMMON)
mark_as_advanced(MUMPS_LIBRARY_DMUMPS)
mark_as_advanced(MUMPS_LIBRARY_PROD)
mark_as_advanced(MUMPS_INCLUDE_PATH)
set(MUMPS_LIBRARIES_ALL ${MUMPS_LIBRARY_DMUMPS} ${MUMPS_LIBRARY_COMMON} ${MUMPS_LIBRARY_PROD})
set(MUMPS_LIBRARIES ${MUMPS_LIBRARIES_ALL} CACHE INTERNAL "Libraries for mumps" FORCE)
#===============================================================================
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(MUMPS DEFAULT_MSG
MUMPS_LIBRARIES MUMPS_INCLUDE_PATH)
#===============================================================================
if(NOT MUMPS_FOUND)
set(MUMPS_DIR "" CACHE PATH "Prefix of mumps library.")
endif(NOT MUMPS_FOUND)

Event Timeline