##// END OF EJS Templates
The binary is build into the dist dir instead of the dist/build_type dir because the build itself make already the diffence bewteen the build type...
perrinel -
r50:f3ae97a0dd83
parent child
Show More
@@ -1,57 +1,56
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/${CMAKE_BUILD_TYPE})
6 SET (EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/dist)
7 SET (LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/dist/${CMAKE_BUILD_TYPE})
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/${CMAKE_BUILD_TYPE}/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/${CMAKE_BUILD_TYPE})
13 SET (CONFIG_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/dist)
14 ENDIF()
14 ENDIF()
15
15
16 INCLUDE ("cmake/sciqlop_code_coverage.cmake")
17
18 if(BUILD_TESTS)
16 if(BUILD_TESTS)
17 INCLUDE ("cmake/sciqlop_code_coverage.cmake")
19 APPEND_COVERAGE_COMPILER_FLAGS()
18 APPEND_COVERAGE_COMPILER_FLAGS()
20 endif(BUILD_TESTS)
19 endif(BUILD_TESTS)
21
20
22 #
21 #
23 # Compile the diffents modules
22 # Compile the diffents modules
24 #
23 #
25 set(sciqlop-core_DIR "${CMAKE_SOURCE_DIR}/core/cmake")
24 set(sciqlop-core_DIR "${CMAKE_SOURCE_DIR}/core/cmake")
26 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${sciqlop-core_DIR}")
25 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${sciqlop-core_DIR}")
27 ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/core")
26 ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/core")
28
27
29 set(sciqlop-gui_DIR "${CMAKE_SOURCE_DIR}/gui/cmake")
28 set(sciqlop-gui_DIR "${CMAKE_SOURCE_DIR}/gui/cmake")
30 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${sciqlop-gui_DIR}")
29 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${sciqlop-gui_DIR}")
31 ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/gui")
30 ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/gui")
32
31
33 ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/app")
32 ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/app")
34
33
35 # LOGGER
34 # LOGGER
36 set(QTLOGGING_INI_FILE "${CMAKE_SOURCE_DIR}/config/QtProject/qtlogging.ini")
35 set(QTLOGGING_INI_FILE "${CMAKE_SOURCE_DIR}/config/QtProject/qtlogging.ini")
37 FILE(COPY ${QTLOGGING_INI_FILE} DESTINATION ${CONFIG_OUTPUT_PATH})
36 FILE(COPY ${QTLOGGING_INI_FILE} DESTINATION ${CONFIG_OUTPUT_PATH})
38
37
39
38
40 #
39 #
41 # Code formatting
40 # Code formatting
42 #
41 #
43 # Vera++ exclusion files
42 # Vera++ exclusion files
44 LIST(APPEND CHECKSTYLE_EXCLUSION_FILES ${CMAKE_CURRENT_SOURCE_DIR}/formatting/vera-exclusions/exclusions.txt)
43 LIST(APPEND CHECKSTYLE_EXCLUSION_FILES ${CMAKE_CURRENT_SOURCE_DIR}/formatting/vera-exclusions/exclusions.txt)
45 #SCIQLOP_SET_TO_PARENT_SCOPE(CHECKSTYLE_EXCLUSION_FILES)
44 #SCIQLOP_SET_TO_PARENT_SCOPE(CHECKSTYLE_EXCLUSION_FILES)
46 INCLUDE ("cmake/sciqlop_formatting.cmake")
45 INCLUDE ("cmake/sciqlop_formatting.cmake")
47
46
48 #
47 #
49 # Documentation generation
48 # Documentation generation
50 #
49 #
51 INCLUDE ("cmake/sciqlop_doxygen.cmake")
50 INCLUDE ("cmake/sciqlop_doxygen.cmake")
52
51
53 #
52 #
54 # Source code analysis
53 # Source code analysis
55 #
54 #
56 INCLUDE ("cmake/sciqlop_code_analysis.cmake")
55 INCLUDE ("cmake/sciqlop_code_analysis.cmake")
57 INCLUDE ("cmake/sciqlop_code_cppcheck.cmake")
56 INCLUDE ("cmake/sciqlop_code_cppcheck.cmake")
General Comments 0
You need to be logged in to leave comments. Login now