@@ -14,6 +14,7 include_directories("${INCLUDES_DIR}") | |||||
14 | # Find Qt modules |
|
14 | # Find Qt modules | |
15 | # |
|
15 | # | |
16 | SCIQLOP_FIND_QT(Core Widgets) |
|
16 | SCIQLOP_FIND_QT(Core Widgets) | |
|
17 | ||||
17 |
|
18 | |||
18 | # |
|
19 | # | |
19 | # Find dependent libraries |
|
20 | # Find dependent libraries | |
@@ -68,6 +69,10 target_link_libraries(${EXECUTABLE_NAME} | |||||
68 |
|
69 | |||
69 | # Link with Qt5 modules |
|
70 | # Link with Qt5 modules | |
70 | qt5_use_modules(${EXECUTABLE_NAME} Core Widgets) |
|
71 | qt5_use_modules(${EXECUTABLE_NAME} Core Widgets) | |
|
72 | ||||
|
73 | ||||
|
74 | add_dependencies(${EXECUTABLE_NAME} ${SQPGUI_LIBRARY_NAME} ${SQPCORE_LIBRARY_NAME}) | |||
|
75 | ||||
71 |
|
76 | |||
72 |
|
77 | |||
73 | # Add the files to the list of files to be analyzed |
|
78 | # Add the files to the list of files to be analyzed |
@@ -42,7 +42,6 SET(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-Setu | |||||
42 | SET(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_NAME} ${CPACK_PACKAGE_NAME}) |
|
42 | SET(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_NAME} ${CPACK_PACKAGE_NAME}) | |
43 |
|
43 | |||
44 | set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_PACKAGE_NAME}) |
|
44 | set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_PACKAGE_NAME}) | |
45 | message("exepath" ${CPACK_PACKAGE_INSTALL_DIRECTORY}) |
|
|||
46 |
|
45 | |||
47 | if (WIN32) |
|
46 | if (WIN32) | |
48 | SET(CPACK_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}) |
|
47 | SET(CPACK_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}) |
@@ -67,6 +67,9 set_property(TARGET ${SQPGUI_LIBRARY_NAME} PROPERTY CXX_STANDARD_REQUIRED ON) | |||||
67 | TARGET_LINK_LIBRARIES(${SQPGUI_LIBRARY_NAME} ${LIBRARIES}) |
|
67 | TARGET_LINK_LIBRARIES(${SQPGUI_LIBRARY_NAME} ${LIBRARIES}) | |
68 | qt5_use_modules(${SQPGUI_LIBRARY_NAME} Core Widgets PrintSupport) |
|
68 | qt5_use_modules(${SQPGUI_LIBRARY_NAME} Core Widgets PrintSupport) | |
69 |
|
69 | |||
|
70 | add_dependencies(${SQPGUI_LIBRARY_NAME} ${SQPCORE_LIBRARY_NAME}) | |||
|
71 | ||||
|
72 | ||||
70 | # From cmake documentation: http://www.cmake.org/cmake/help/v3.0/manual/cmake-buildsystem.7.html |
|
73 | # From cmake documentation: http://www.cmake.org/cmake/help/v3.0/manual/cmake-buildsystem.7.html | |
71 | # Entries in the COMPILE_DEFINITIONS are prefixed with -D or /D and added to the compile line in an unspecified order. |
|
74 | # Entries in the COMPILE_DEFINITIONS are prefixed with -D or /D and added to the compile line in an unspecified order. | |
72 | # The DEFINE_SYMBOL target property is also added as a compile definition as a special convenience case for SHARED and MODULE library targets |
|
75 | # The DEFINE_SYMBOL target property is also added as a compile definition as a special convenience case for SHARED and MODULE library targets |
@@ -17,7 +17,8 SCIQLOP_FIND_QT(Core) | |||||
17 | FILE (GLOB_RECURSE MODULE_SOURCES |
|
17 | FILE (GLOB_RECURSE MODULE_SOURCES | |
18 | ${INCLUDES_DIR}/*.h) |
|
18 | ${INCLUDES_DIR}/*.h) | |
19 |
|
19 | |||
20 |
|
|
20 | ADD_LIBRARY(${SQPPLUGIN_LIBRARY_NAME} ${MODULE_SOURCES}) | |
|
21 | ||||
21 |
|
22 | |||
22 | # Add the files to the list of files to be analyzed |
|
23 | # Add the files to the list of files to be analyzed | |
23 | LIST(APPEND CHECKSTYLE_INPUT_FILES ${MODULE_SOURCES}) |
|
24 | LIST(APPEND CHECKSTYLE_INPUT_FILES ${MODULE_SOURCES}) |
@@ -51,6 +51,8 set_property(TARGET ${SQPMOCKPLUGIN_LIBRARY_NAME} PROPERTY CXX_STANDARD_REQUIRED | |||||
51 |
|
51 | |||
52 | TARGET_LINK_LIBRARIES(${SQPMOCKPLUGIN_LIBRARY_NAME} ${LIBRARIES}) |
|
52 | TARGET_LINK_LIBRARIES(${SQPMOCKPLUGIN_LIBRARY_NAME} ${LIBRARIES}) | |
53 | qt5_use_modules(${SQPMOCKPLUGIN_LIBRARY_NAME} Core Widgets) |
|
53 | qt5_use_modules(${SQPMOCKPLUGIN_LIBRARY_NAME} Core Widgets) | |
|
54 | ||||
|
55 | add_dependencies(${SQPMOCKPLUGIN_LIBRARY_NAME} ${SQPPLUGIN_LIBRARY_NAME} ${SQPGUI_LIBRARY_NAME} ${SQPCORE_LIBRARY_NAME}) | |||
54 |
|
56 | |||
55 | # From cmake documentation: http://www.cmake.org/cmake/help/v3.0/manual/cmake-buildsystem.7.html |
|
57 | # From cmake documentation: http://www.cmake.org/cmake/help/v3.0/manual/cmake-buildsystem.7.html | |
56 | # Entries in the COMPILE_DEFINITIONS are prefixed with -D or /D and added to the compile line in an unspecified order. |
|
58 | # Entries in the COMPILE_DEFINITIONS are prefixed with -D or /D and added to the compile line in an unspecified order. |
General Comments 0
You need to be logged in to leave comments.
Login now