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()
|
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)
|
2018-06-06 11:42:26 -05:00
|
|
|
find_package(Doxygen)
|
2015-04-08 10:45:45 -05:00
|
|
|
|
|
|
|
if(WITH_OPENMP)
|
2015-04-23 11:02:00 -05:00
|
|
|
find_package(OpenMP REQUIRED)
|
|
|
|
add_definitions(${OpenMP_CXX_FLAGS})
|
|
|
|
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${OpenMP_CXX_FLAGS}")
|
|
|
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${OpenMP_CXX_FLAGS}")
|
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_CXX_FLAGS}")
|
2015-04-08 10:45:45 -05:00
|
|
|
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)
|
2018-06-06 11:42:26 -05:00
|
|
|
#add_subdirectory(doc)
|