Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92562997
FindMumps.cmake
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Nov 21, 12:24
Size
1 KB
Mime Type
text/plain
Expires
Sat, Nov 23, 12:24 (19 h, 37 m)
Engine
blob
Format
Raw Data
Handle
22463242
Attached To
rAKA akantu
FindMumps.cmake
View Options
#===============================================================================
# @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
Log In to Comment