2010-06-13 16:06:23 -05:00
|
|
|
|
2010-07-15 09:40:08 -05:00
|
|
|
project(METIS)
|
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 2.4.0)
|
|
|
|
|
2011-02-02 05:42:51 -06:00
|
|
|
list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}/$ENV{BOOTSTRAP_TOP}/share/cmake/Modules/")
|
2010-07-15 09:40:08 -05:00
|
|
|
find_package(Bootstrap REQUIRED)
|
|
|
|
setup_project_paths(VLSISAPD)
|
|
|
|
setup_project_paths(CORIOLIS)
|
|
|
|
print_cmake_module_path()
|
|
|
|
|
|
|
|
set_cmake_policies()
|
|
|
|
set_lib_link_mode()
|
|
|
|
setup_boost(program_options filesystem python regex)
|
|
|
|
|
|
|
|
set(QT_USE_QTXML "true")
|
|
|
|
find_package(Qt4 REQUIRED) # find and setup Qt4 for this project
|
2012-11-16 06:51:59 -06:00
|
|
|
find_package(PythonLibs REQUIRED)
|
|
|
|
find_package(PythonSitePackages REQUIRED)
|
2010-07-15 09:40:08 -05:00
|
|
|
find_package(VLSISAPD 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)
|