ThirdPartyMetis.cmake 775 Bytes
Newer Older
1
SET(THIRDPARTY_BUILD_METIS ON CACHE BOOL
2 3 4 5 6
    "Build ModMetis library from ThirdParty")

IF (THIRDPARTY_BUILD_METIS)
    INCLUDE(ExternalProject)
    EXTERNALPROJECT_ADD(
7
        metis-5.0.2
8
        PREFIX ${TPSRC}
9 10
        URL ${TPURL}/metis-5.0.2.tar.gz
        URL_MD5 "acb521a4e8c2e6dd559a7f9abd0468c5"
11
        DOWNLOAD_DIR ${TPSRC}
12
        CONFIGURE_COMMAND ${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX:PATH=${TPSRC}/dist -DGKLIB_PATH:PATH=${TPSRC}/src/metis-5.0.2/GKlib ${TPSRC}/src/metis-5.0.2
13
    )
14
    SET(METIS_LIB metis CACHE FILEPATH
15
        "METIS library" FORCE)
16
    MARK_AS_ADVANCED(METIS_LIB)
17
    LINK_DIRECTORIES(${TPSRC}/dist/lib)
18
    INCLUDE_DIRECTORIES(${TPSRC}/dist/include)
19 20 21 22
ELSE (THIRDPARTY_BUILD_METIS)
    INCLUDE (FindMetis)
ENDIF (THIRDPARTY_BUILD_METIS)