ThirdPartyMetis.cmake 638 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
SET(THIRDPARTY_BUILD_METIS OFF CACHE BOOL
    "Build ModMetis library from ThirdParty")

IF (THIRDPARTY_BUILD_METIS)
    INCLUDE(ExternalProject)
    EXTERNALPROJECT_ADD(
        modmetis-4.0
        PREFIX ${TPSRC}
        URL ${TPURL}/modmetis-4.0.tar.bz2
        URL_MD5 "4267355e04dcc2ef36f9889a98c923a5"
        DOWNLOAD_DIR ${TPSRC}
        CONFIGURE_COMMAND ${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX:PATH=${TPSRC}/dist ${TPSRC}/src/modmetis-4.0
    )
    SET(METIS_LIB ${TPSRC}/dist/lib/libmodmetis.a CACHE FILEPATH
        "METIS library" FORCE)
ELSE (THIRDPARTY_BUILD_METIS)
    INCLUDE (FindMetis)
ENDIF (THIRDPARTY_BUILD_METIS)