##// END OF EJS Templates
Merge pull request 416 from SciQLop-IPSIS-fork CMake_rework...
Merge pull request 416 from SciQLop-IPSIS-fork CMake_rework CMake rework + all non merged commits from last months

File last commit:

r1337:1ffe6a6d7e2d
r1338:8de1d294b752 merge develop
Show More
CMakeLists.txt
62 lines | 1.7 KiB | text/plain | CMakeLexer
Modernized CMake configuration...
r1331 cmake_minimum_required(VERSION 3.6)
project(SciQLOP CXX)
Initialisation de l'archi cmake
r0
Modernized CMake configuration...
r1331 include(GNUInstallDirs)
Initialisation de l'archi cmake
r0
Modernized CMake configuration...
r1331 SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/cmake")
Initialisation de l'archi cmake
r0
Modernized CMake configuration...
r1331 OPTION (CPPCHECK "Analyzes the source code with cppcheck" OFF)
OPTION (CLANG_TIDY "Analyzes the source code with Clang Tidy" OFF)
OPTION (IWYU "Analyzes the source code with Include What You Use" OFF)
Add CatalogueAPI external project with SciQLop cmake configuration
r1062
Modernized CMake configuration...
r1331 set(CMAKE_CXX_STANDARD 14)
Add CatalogueAPI external project with SciQLop cmake configuration
r1062
Modernized CMake configuration...
r1331 set(CMAKE_AUTOMOC ON)
#https://gitlab.kitware.com/cmake/cmake/issues/15227
#set(CMAKE_AUTOUIC ON)
if(POLICY CMP0071)
cmake_policy(SET CMP0071 OLD)
endif()
set(CMAKE_AUTORCC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
if(NOT DEFINED CMAKE_INSTALL_RPATH_USE_LINK_PATH)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
endif()
if(NOT DEFINED CMAKE_MACOSX_RPATH)
set(CMAKE_MACOSX_RPATH TRUE)
endif()
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
endif()
find_package(Qt5 COMPONENTS Core Widgets Network PrintSupport Svg Test REQUIRED)
IF(CPPCHECK)
set(CMAKE_CXX_CPPCHECK "cppcheck;--enable=warning,style")
ENDIF(CPPCHECK)
IF(CLANG_TIDY)
set(CMAKE_CXX_CLANG_TIDY "clang-tidy;-style=file;-checks=*")
ENDIF(CLANG_TIDY)
IF(IWYU)
set(CMAKE_CXX_INCLUDE_WHAT_YOU_USE "include-what-you-use")
ENDIF(IWYU)
enable_testing()
Switched to upstream repository of libcatalogs(AKA CatalogueAPI)...
r1337 find_package(catalogs CONFIG QUIET)
Modernized CMake configuration...
r1331 if (NOT CatalogueAPI_FOUND)
Switched to upstream repository of libcatalogs(AKA CatalogueAPI)...
r1337 execute_process(COMMAND git submodule init external/libcatalogs WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
execute_process(COMMAND git submodule update external/libcatalogs WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
add_subdirectory(external/libcatalogs)
Modernized CMake configuration...
r1331 endif()
add_subdirectory(core)
add_subdirectory(gui)
add_subdirectory(app)
add_subdirectory(plugins)
add_subdirectory(docs)