Auto status change to "Under Review"
@@ -0,0 +1,45 | |||||
|
1 | ## plugin - CMakeLists.txt | |||
|
2 | STRING(TOLOWER ${CMAKE_PROJECT_NAME} LIBRARY_PREFFIX) | |||
|
3 | SET(SQPPLUGIN_LIBRARY_NAME "${LIBRARY_PREFFIX}_plugin${DEBUG_SUFFIX}") | |||
|
4 | SET(INCLUDES_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include") | |||
|
5 | ||||
|
6 | # Include plugin directory | |||
|
7 | INCLUDE_DIRECTORIES("${INCLUDES_DIR}") | |||
|
8 | ||||
|
9 | # | |||
|
10 | # Find Qt modules | |||
|
11 | # | |||
|
12 | SCIQLOP_FIND_QT(Core) | |||
|
13 | ||||
|
14 | # | |||
|
15 | # Compile the library | |||
|
16 | # | |||
|
17 | FILE (GLOB_RECURSE MODULE_SOURCES | |||
|
18 | ${INCLUDES_DIR}/*.h) | |||
|
19 | ||||
|
20 | ADD_LIBRARY(${SQPPLUGIN_LIBRARY_NAME} ${MODULE_SOURCES}) | |||
|
21 | ||||
|
22 | # Add the files to the list of files to be analyzed | |||
|
23 | LIST(APPEND CHECKSTYLE_INPUT_FILES ${MODULE_SOURCES}) | |||
|
24 | SCIQLOP_SET_TO_PARENT_SCOPE(CHECKSTYLE_INPUT_FILES) | |||
|
25 | # Vera++ exclusion files | |||
|
26 | #LIST(APPEND CHECKSTYLE_EXCLUSION_FILES ${CMAKE_CURRENT_SOURCE_DIR}/path/to/exclusionFiles.tcl) | |||
|
27 | SCIQLOP_SET_TO_PARENT_SCOPE(CHECKSTYLE_EXCLUSION_FILES) | |||
|
28 | ||||
|
29 | # | |||
|
30 | # Set the files that must be formatted by clang-format. | |||
|
31 | # | |||
|
32 | LIST (APPEND FORMATTING_INPUT_FILES ${MODULE_SOURCES}) | |||
|
33 | SCIQLOP_SET_TO_PARENT_SCOPE(FORMATTING_INPUT_FILES) | |||
|
34 | ||||
|
35 | # | |||
|
36 | # Set the directories that doxygen must browse to generate the | |||
|
37 | # documentation. | |||
|
38 | # | |||
|
39 | # Source directories: | |||
|
40 | LIST (APPEND DOXYGEN_INPUT_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/docs") | |||
|
41 | LIST (APPEND DOXYGEN_INPUT_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/include") | |||
|
42 | SCIQLOP_SET_TO_PARENT_SCOPE(DOXYGEN_INPUT_DIRS) | |||
|
43 | # Source directories to exclude from the documentation generation | |||
|
44 | #LIST (APPEND DOXYGEN_EXCLUDE_PATTERNS "${CMAKE_CURRENT_SOURCE_DIR}/path/to/subdir/*") | |||
|
45 | SCIQLOP_SET_TO_PARENT_SCOPE(DOXYGEN_EXCLUDE_PATTERNS) |
@@ -0,0 +1,12 | |||||
|
1 | # - Try to find sciqlop-plugin | |||
|
2 | # Once done this will define | |||
|
3 | # SCIQLOP-PLUGIN_FOUND - System has sciqlop-plugin | |||
|
4 | # SCIQLOP-PLUGIN_INCLUDE_DIR - The sciqlop-plugin include directories | |||
|
5 | ||||
|
6 | if(SCIQLOP-PLUGIN_FOUND) | |||
|
7 | return() | |||
|
8 | endif(SCIQLOP-PLUGIN_FOUND) | |||
|
9 | ||||
|
10 | set(SCIQLOP-PLUGIN_INCLUDE_DIR ${sciqlop-plugin_DIR}/../include) | |||
|
11 | ||||
|
12 | set(SCIQLOP-PLUGIN_FOUND TRUE) |
@@ -1,56 +1,60 | |||||
1 | # |
|
1 | # | |
2 | # Sciqlop_modules.cmake |
|
2 | # Sciqlop_modules.cmake | |
3 | # |
|
3 | # | |
4 | # Set ouptut directories |
|
4 | # Set ouptut directories | |
5 | # |
|
5 | # | |
6 | SET (EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/dist) |
|
6 | SET (EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/dist) | |
7 | SET (LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/dist) |
|
7 | SET (LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/dist) | |
8 | IF (UNIX) |
|
8 | IF (UNIX) | |
9 | SET (CONFIG_OUTPUT_PATH $ENV{HOME}/.config/QtProject) |
|
9 | SET (CONFIG_OUTPUT_PATH $ENV{HOME}/.config/QtProject) | |
10 | ELSEIF(WIN32) |
|
10 | ELSEIF(WIN32) | |
11 | SET (CONFIG_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/dist/app/QtProject) |
|
11 | SET (CONFIG_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/dist/app/QtProject) | |
12 | ELSE() |
|
12 | ELSE() | |
13 | SET (CONFIG_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/dist) |
|
13 | SET (CONFIG_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/dist) | |
14 | ENDIF() |
|
14 | ENDIF() | |
15 |
|
15 | |||
16 | if(BUILD_TESTS) |
|
16 | if(BUILD_TESTS) | |
17 | INCLUDE ("cmake/sciqlop_code_coverage.cmake") |
|
17 | INCLUDE ("cmake/sciqlop_code_coverage.cmake") | |
18 | APPEND_COVERAGE_COMPILER_FLAGS() |
|
18 | APPEND_COVERAGE_COMPILER_FLAGS() | |
19 | endif(BUILD_TESTS) |
|
19 | endif(BUILD_TESTS) | |
20 |
|
20 | |||
21 | # |
|
21 | # | |
22 | # Compile the diffents modules |
|
22 | # Compile the diffents modules | |
23 | # |
|
23 | # | |
|
24 | set(sciqlop-plugin_DIR "${CMAKE_SOURCE_DIR}/plugin/cmake") | |||
|
25 | set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${sciqlop-plugin_DIR}") | |||
|
26 | ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/plugin") | |||
|
27 | ||||
24 | set(sciqlop-core_DIR "${CMAKE_SOURCE_DIR}/core/cmake") |
|
28 | set(sciqlop-core_DIR "${CMAKE_SOURCE_DIR}/core/cmake") | |
25 | set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${sciqlop-core_DIR}") |
|
29 | set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${sciqlop-core_DIR}") | |
26 | ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/core") |
|
30 | ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/core") | |
27 |
|
31 | |||
28 | set(sciqlop-gui_DIR "${CMAKE_SOURCE_DIR}/gui/cmake") |
|
32 | set(sciqlop-gui_DIR "${CMAKE_SOURCE_DIR}/gui/cmake") | |
29 | set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${sciqlop-gui_DIR}") |
|
33 | set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${sciqlop-gui_DIR}") | |
30 | ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/gui") |
|
34 | ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/gui") | |
31 |
|
35 | |||
32 | ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/app") |
|
36 | ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/app") | |
33 |
|
37 | |||
34 | # LOGGER |
|
38 | # LOGGER | |
35 | set(QTLOGGING_INI_FILE "${CMAKE_SOURCE_DIR}/config/QtProject/qtlogging.ini") |
|
39 | set(QTLOGGING_INI_FILE "${CMAKE_SOURCE_DIR}/config/QtProject/qtlogging.ini") | |
36 | FILE(COPY ${QTLOGGING_INI_FILE} DESTINATION ${CONFIG_OUTPUT_PATH}) |
|
40 | FILE(COPY ${QTLOGGING_INI_FILE} DESTINATION ${CONFIG_OUTPUT_PATH}) | |
37 |
|
41 | |||
38 |
|
42 | |||
39 | # |
|
43 | # | |
40 | # Code formatting |
|
44 | # Code formatting | |
41 | # |
|
45 | # | |
42 | # Vera++ exclusion files |
|
46 | # Vera++ exclusion files | |
43 | LIST(APPEND CHECKSTYLE_EXCLUSION_FILES ${CMAKE_CURRENT_SOURCE_DIR}/formatting/vera-exclusions/exclusions.txt) |
|
47 | LIST(APPEND CHECKSTYLE_EXCLUSION_FILES ${CMAKE_CURRENT_SOURCE_DIR}/formatting/vera-exclusions/exclusions.txt) | |
44 | #SCIQLOP_SET_TO_PARENT_SCOPE(CHECKSTYLE_EXCLUSION_FILES) |
|
48 | #SCIQLOP_SET_TO_PARENT_SCOPE(CHECKSTYLE_EXCLUSION_FILES) | |
45 | INCLUDE ("cmake/sciqlop_formatting.cmake") |
|
49 | INCLUDE ("cmake/sciqlop_formatting.cmake") | |
46 |
|
50 | |||
47 | # |
|
51 | # | |
48 | # Documentation generation |
|
52 | # Documentation generation | |
49 | # |
|
53 | # | |
50 | INCLUDE ("cmake/sciqlop_doxygen.cmake") |
|
54 | INCLUDE ("cmake/sciqlop_doxygen.cmake") | |
51 |
|
55 | |||
52 | # |
|
56 | # | |
53 | # Source code analysis |
|
57 | # Source code analysis | |
54 | # |
|
58 | # | |
55 | INCLUDE ("cmake/sciqlop_code_analysis.cmake") |
|
59 | INCLUDE ("cmake/sciqlop_code_analysis.cmake") | |
56 | INCLUDE ("cmake/sciqlop_code_cppcheck.cmake") |
|
60 | INCLUDE ("cmake/sciqlop_code_cppcheck.cmake") |
General Comments 5
Pull request updated. Auto status change to "Under Review"
Changed commits: * 1 added * 0 removed Changed files: * M core/CMakeLists.txt
Status change > Approved
You need to be logged in to leave comments.
Login now