coriolis/deprecated/metis/CMakeLists.txt

35 lines
1011 B
CMake

# -*- mode: CMAKE explicit-buffer-name: "CMakeLists.txt<metis>" -*-
set(CMAKE_LEGACY_CYGWIN_WIN32 0)
project(METIS)
cmake_minimum_required(VERSION 3.16)
option(USE_LIBBFD "Link with BFD libraries to print stack traces" OFF)
list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}$ENV{CORIOLIS_TOP}/share/cmake/Modules/")
find_package(Bootstrap REQUIRED)
setup_project_paths(CORIOLIS)
print_cmake_module_path()
set_cmake_policies()
setup_boost()
find_package(Python 3 REQUIRED COMPONENTS Interpreter Development)
find_package(PythonSitePackages REQUIRED)
find_package(HURRICANE REQUIRED)
find_package(CORIOLIS REQUIRED)
find_package(NIMBUS REQUIRED)
set(HMETIS_INCLUDE_PATH METIS_INCLUDE_PATH)
find_library(HMETIS_LIBRARY_PATH
NAMES hmetis
PATHS ${CORIOLIS_DIR_SEARCH} /opt/coriolis
PATH_SUFFIXES lib${LIB_SUFFIX}
# Help the user find it if we cannot.
DOC "The hmetis static library"
)
set_libraries_path(HMETIS HMETIS)
add_subdirectory(src)
add_subdirectory(cmake_modules)