1 cmake_minimum_required(VERSION 2.8)
4 set(GKLIB_PATH "GKlib" CACHE PATH "path to GKlib")
5 set(SHARED FALSE CACHE BOOL "build a shared library")
8 set(METIS_INSTALL FALSE)
10 set(METIS_INSTALL TRUE)
13 # Configure libmetis library.
15 set(METIS_LIBRARY_TYPE SHARED)
17 set(METIS_LIBRARY_TYPE STATIC)
20 include(${GKLIB_PATH}/GKlibSystem.cmake)
21 # Add include directories.
22 include_directories(${GKLIB_PATH})
23 include_directories(include)
24 # Recursively look for CMakeLists.txt in subdirs.
25 add_subdirectory("include")
26 add_subdirectory("libmetis")
27 add_subdirectory("programs")