FindMETIS.cmake 631 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Find the METIS includes and library
#
# This module defines
#  METIS_INCLUDE_DIR        -    where to find metis.h
#  METIS_LIBRARIES          -    libraries to link against to use METIS.
#  METIS_FOUND              -    METIS library was found

INCLUDE(FindPackageHandleStandardArgs)

FIND_PATH(METIS_INCLUDE_DIR
    NAMES
    "metis.h"
    PATHS
    ${EXTERNAL_METIS_PATH}
    )


FIND_LIBRARY(METIS_LIBRARIES
    NAMES
    libmetis metis
    PATHS
    ${EXTERNAL_METIS_LIB_PATH}
    )


FIND_PACKAGE_HANDLE_STANDARD_ARGS(METIS DEFAULT_MSG METIS_INCLUDE_DIR METIS_LIBRARIES)
MARK_AS_ADVANCED(METIS_LIBRARIES METIS_INCLUDE_DIR)