Bug #1267: Integrate METIS graph partitioning library
[charm.git] / src / libs / ck-libs / metis / CMakeLists.txt
blob186a320463d3ba6614748ce6729b1d4b21ac9002
1 cmake_minimum_required(VERSION 2.8)
2 project(METIS)
4 set(GKLIB_PATH "GKlib" CACHE PATH "path to GKlib")
5 set(SHARED FALSE CACHE BOOL "build a shared library")
7 if(MSVC)
8   set(METIS_INSTALL FALSE)
9 else()
10   set(METIS_INSTALL TRUE)
11 endif()
13 # Configure libmetis library.
14 if(SHARED)
15   set(METIS_LIBRARY_TYPE SHARED)
16 else()
17   set(METIS_LIBRARY_TYPE STATIC)
18 endif(SHARED)
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")