sciqlop_applications.cmake
67 lines
| 2.0 KiB
| text/x-cmake
|
CMakeLexer
/ cmake / sciqlop_applications.cmake
r0 | # | |||
# Sciqlop_modules.cmake | ||||
# | ||||
# Set ouptut directories | ||||
# | ||||
r50 | SET (EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/dist) | |||
SET (LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/dist) | ||||
r25 | IF (UNIX) | |||
SET (CONFIG_OUTPUT_PATH $ENV{HOME}/.config/QtProject) | ||||
ELSEIF(WIN32) | ||||
r50 | SET (CONFIG_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/dist/app/QtProject) | |||
r25 | ELSE() | |||
r50 | SET (CONFIG_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/dist) | |||
r25 | ENDIF() | |||
r0 | ||||
r42 | if(BUILD_TESTS) | |||
r50 | INCLUDE ("cmake/sciqlop_code_coverage.cmake") | |||
r42 | APPEND_COVERAGE_COMPILER_FLAGS() | |||
endif(BUILD_TESTS) | ||||
r0 | # | |||
mperrinel
|
r18 | # Compile the diffents modules | ||
r0 | # | |||
Alexandre Leroux
|
r64 | set(sciqlop-plugin_DIR "${CMAKE_SOURCE_DIR}/plugin/cmake") | ||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${sciqlop-plugin_DIR}") | ||||
ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/plugin") | ||||
r20 | set(sciqlop-core_DIR "${CMAKE_SOURCE_DIR}/core/cmake") | |||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${sciqlop-core_DIR}") | ||||
ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/core") | ||||
set(sciqlop-gui_DIR "${CMAKE_SOURCE_DIR}/gui/cmake") | ||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${sciqlop-gui_DIR}") | ||||
ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/gui") | ||||
ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/app") | ||||
r0 | ||||
Alexandre Leroux
|
r98 | OPTION (BUILD_PLUGINS "Build the plugins" OFF) | ||
IF(BUILD_PLUGINS) | ||||
set(sciqlop-mockplugin_DIR "${CMAKE_SOURCE_DIR}/plugins/mockplugin/cmake") | ||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${sciqlop-mockplugin_DIR}") | ||||
ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/plugins/mockplugin") | ||||
ENDIF(BUILD_PLUGINS) | ||||
r25 | # LOGGER | |||
set(QTLOGGING_INI_FILE "${CMAKE_SOURCE_DIR}/config/QtProject/qtlogging.ini") | ||||
FILE(COPY ${QTLOGGING_INI_FILE} DESTINATION ${CONFIG_OUTPUT_PATH}) | ||||
r0 | # | |||
# Code formatting | ||||
# | ||||
r24 | # Vera++ exclusion files | |||
LIST(APPEND CHECKSTYLE_EXCLUSION_FILES ${CMAKE_CURRENT_SOURCE_DIR}/formatting/vera-exclusions/exclusions.txt) | ||||
Alexandre Leroux
|
r41 | #SCIQLOP_SET_TO_PARENT_SCOPE(CHECKSTYLE_EXCLUSION_FILES) | ||
r0 | INCLUDE ("cmake/sciqlop_formatting.cmake") | |||
# | ||||
# Documentation generation | ||||
# | ||||
INCLUDE ("cmake/sciqlop_doxygen.cmake") | ||||
# | ||||
# Source code analysis | ||||
# | ||||
INCLUDE ("cmake/sciqlop_code_analysis.cmake") | ||||
mperrinel
|
r14 | INCLUDE ("cmake/sciqlop_code_cppcheck.cmake") | ||