ThirdPartyMetis.cmake 654 Bytes
Newer Older
1
SET(THIRDPARTY_BUILD_METIS ON CACHE BOOL
2
3
4
5
6
7
8
9
10
11
12
13
    "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
    )
14
    SET(METIS_LIB modmetis CACHE FILEPATH
15
        "METIS library" FORCE)
16
    LINK_DIRECTORIES(${TPSRC}/dist/lib)
17
18
19
20
ELSE (THIRDPARTY_BUILD_METIS)
    INCLUDE (FindMetis)
ENDIF (THIRDPARTY_BUILD_METIS)