2015-04-08 10:45:45 -05:00
|
|
|
# -*- explicit-buffer-name: "CMakeLists.txt<coloquinte>" -*-
|
2015-04-08 03:45:11 -05:00
|
|
|
|
2015-04-08 05:06:14 -05:00
|
|
|
set(CMAKE_LEGACY_CYGWIN_WIN32 0)
|
|
|
|
project(COLOQUINTE)
|
2015-04-08 03:45:11 -05:00
|
|
|
|
2015-04-08 05:06:14 -05:00
|
|
|
option(BUILD_DOC "Build the documentation (doxygen)" OFF)
|
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 2.8.9)
|
2015-04-08 03:45:11 -05:00
|
|
|
|
2015-04-08 05:06:14 -05:00
|
|
|
list(INSERT CMAKE_MODULE_PATH 0 "${DESTDIR}$ENV{CORIOLIS_TOP}/share/cmake/Modules/")
|
|
|
|
find_package(Bootstrap REQUIRED)
|
|
|
|
setup_project_paths(CORIOLIS)
|
|
|
|
setup_qt()
|
|
|
|
|
|
|
|
set_cmake_policies()
|
|
|
|
set_lib_link_mode()
|
2015-04-08 10:45:45 -05:00
|
|
|
setup_boost()
|
2015-04-08 05:06:14 -05:00
|
|
|
|
2015-04-08 10:45:45 -05:00
|
|
|
find_package(Libexecinfo REQUIRED)
|
|
|
|
|
|
|
|
if(WITH_OPENMP)
|
|
|
|
add_definitions( -fopenmp )
|
|
|
|
endif()
|
2015-04-08 05:06:14 -05:00
|
|
|
|
2015-04-08 03:45:11 -05:00
|
|
|
add_subdirectory(src)
|
2015-04-08 05:06:14 -05:00
|
|
|
add_subdirectory(cmake_modules)
|
2015-04-08 03:45:11 -05:00
|
|
|
|
2015-04-08 05:06:14 -05:00
|
|
|
if(BUILD_DOC)
|
|
|
|
find_package(Doxygen)
|
|
|
|
# if(DOXYGEN_FOUND)
|
|
|
|
# add_subdirectory(doc)
|
|
|
|
# endif()
|
|
|
|
endif()
|