Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show All 12 Lines | |||||
13 | set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH}) | 13 | set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH}) | ||
14 | set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${upload_SOURCE_DIR}/cmake/) | 14 | set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${upload_SOURCE_DIR}/cmake/) | ||
15 | 15 | | |||
16 | include(KDECompilerSettings NO_POLICY_SCOPE) | 16 | include(KDECompilerSettings NO_POLICY_SCOPE) | ||
17 | include(ECMAddTests) | 17 | include(ECMAddTests) | ||
18 | include(KDEInstallDirs) | 18 | include(KDEInstallDirs) | ||
19 | include(KDECMakeSettings) | 19 | include(KDECMakeSettings) | ||
20 | include(FeatureSummary) | 20 | include(FeatureSummary) | ||
21 | include(ECMQtDeclareLoggingCategory) | ||||
22 | include(KDECMakeSettings) | ||||
23 | include(WriteBasicConfigVersionFile) | ||||
21 | 24 | | |||
22 | set(QT_MIN_VERSION "5.5.0") | 25 | set(QT_MIN_VERSION "5.5.0") | ||
23 | find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED Core Widgets) | 26 | find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED Core Widgets) | ||
24 | set(KF5_DEP_VERSION "5.15.0") | 27 | set(KF5_DEP_VERSION "5.15.0") | ||
25 | find_package(KF5 ${KF5_DEP_VERSION} REQUIRED COMPONENTS TextEditor I18n KCMUtils JobWidgets Service Parts KIO CoreAddons ItemModels) | 28 | find_package(KF5 ${KF5_DEP_VERSION} REQUIRED COMPONENTS Config TextEditor I18n KCMUtils JobWidgets Service Parts KIO CoreAddons ItemModels XmlGui) | ||
26 | find_package(KDevPlatform ${KDEVPLATFORM_VERSION} REQUIRED) | 29 | find_package(KDevPlatform ${KDEVPLATFORM_VERSION} REQUIRED) | ||
27 | 30 | | |||
28 | include_directories( | 31 | include_directories( | ||
29 | ${CMAKE_CURRENT_BINARY_DIR} | 32 | ${CMAKE_CURRENT_BINARY_DIR} | ||
30 | ${CMAKE_CURRENT_SOURCE_DIR} | 33 | ${CMAKE_CURRENT_SOURCE_DIR} | ||
31 | ) | 34 | ) | ||
32 | 35 | | |||
33 | add_subdirectory(tests) | 36 | add_subdirectory(tests) | ||
34 | 37 | | |||
35 | #plugin | 38 | #plugin | ||
36 | set(kdevupload_PART_SRCS | 39 | set(kdevupload_PART_SRCS | ||
37 | kdevuploadplugin.cpp | 40 | kdevuploadplugin.cpp | ||
38 | allprofilesmodel.cpp | 41 | allprofilesmodel.cpp | ||
39 | profilesfiletree.cpp | 42 | profilesfiletree.cpp | ||
40 | uploaddialog.cpp | 43 | uploaddialog.cpp | ||
41 | uploadjob.cpp | 44 | uploadjob.cpp | ||
42 | uploadprofiledlg.cpp | 45 | uploadprofiledlg.cpp | ||
43 | uploadprofileitem.cpp | 46 | uploadprofileitem.cpp | ||
44 | uploadprofilemodel.cpp | 47 | uploadprofilemodel.cpp | ||
45 | uploadprojectmodel.cpp | 48 | uploadprojectmodel.cpp | ||
49 | uploadpreferences.cpp | ||||
46 | ) | 50 | ) | ||
47 | set(kdevupload_UI | 51 | set(kdevupload_UI | ||
48 | uploaddialog.ui | 52 | uploaddialog.ui | ||
49 | uploadprofiledlg.ui | 53 | uploadprofiledlg.ui | ||
54 | uploadpreferences.ui | ||||
55 | ) | ||||
56 | | ||||
57 | ecm_qt_declare_logging_category(projectfilter_SRCS | ||||
58 | HEADER debug.h | ||||
59 | IDENTIFIER PLUGIN_PROJECTFILTER | ||||
60 | CATEGORY_NAME "kdevelop.plugins.upload" | ||||
50 | ) | 61 | ) | ||
51 | 62 | | |||
63 | ki18n_wrap_ui(uploadpreferences_PART_SRCS uploadpreferences.ui uploadprofiledlg.ui uploaddialog.ui) | ||||
64 | kconfig_add_kcfg_files( kdevupload_PART_SRCS uploadconfig.kcfgc ) | ||||
65 | | ||||
52 | add_library(kdevupload_PART_SRCS ${kdevupload_UI}) | 66 | add_library(kdevupload_PART_SRCS ${kdevupload_UI}) | ||
53 | 67 | | |||
54 | qt5_add_resources(kdevupload_PART_SRCS kdevupload.qrc) | 68 | qt5_add_resources(kdevupload_PART_SRCS kdevupload.qrc) | ||
55 | kdevplatform_add_plugin(kdevupload JSON kdevupload.json SOURCES ${kdevupload_PART_SRCS}) | 69 | kdevplatform_add_plugin(kdevupload JSON kdevupload.json SOURCES ${kdevupload_PART_SRCS}) | ||
56 | 70 | | |||
57 | target_link_libraries(kdevupload | 71 | target_link_libraries(kdevupload | ||
58 | KDev::Interfaces | 72 | KDev::Interfaces | ||
59 | KDev::Project | 73 | KDev::Project | ||
60 | KDev::Serialization | 74 | KDev::Serialization | ||
61 | 75 | | |||
62 | KF5::JobWidgets | 76 | KF5::JobWidgets | ||
63 | KF5::KCMUtils | 77 | KF5::KCMUtils | ||
64 | KF5::KIOCore | 78 | KF5::KIOCore | ||
65 | KF5::KIOFileWidgets | 79 | KF5::KIOFileWidgets | ||
66 | KF5::KIOWidgets | 80 | KF5::KIOWidgets | ||
67 | KF5::KIONTLM | 81 | KF5::KIONTLM | ||
68 | KF5::CoreAddons | 82 | KF5::CoreAddons | ||
69 | ) | 83 | ) | ||
70 | | ||||
71 | #preferences-plugin | | |||
72 | set(uploadpreferences_PART_SRCS | | |||
73 | uploadpreferences.cpp | | |||
74 | uploadprofilemodel.cpp | | |||
75 | uploadprofileitem.cpp | | |||
76 | uploadprofiledlg.cpp | | |||
77 | ) | | |||
78 | ki18n_wrap_ui(uploadpreferences_PART_SRCS uploadpreferences.ui uploadprofiledlg.ui uploaddialog.ui) | | |||
79 | add_library(uploadpreferences_PART_SRCS uploadpreferences.ui uploadprofiledlg.ui uploaddialog.ui) | | |||
80 | | ||||
81 | add_library(kcm_kdev_upload ${uploadpreferences_PART_SRCS}) | | |||
82 | | ||||
83 | target_link_libraries(kcm_kdev_upload | | |||
84 | KDev::Interfaces | | |||
85 | KDev::Util | | |||
86 | | ||||
87 | KF5::I18n | | |||
88 | KF5::KCMUtils | | |||
89 | KF5::Service | | |||
90 | KF5::Parts | | |||
91 | KF5::KIOCore | | |||
92 | KF5::KIOFileWidgets | | |||
93 | KF5::KIOWidgets | | |||
94 | KF5::KIONTLM | | |||
95 | ) | | |||
96 | | ||||
97 | install(TARGETS kcm_kdev_upload DESTINATION ${PLUGIN_INSTALL_DIR}) | | |||
98 | install(FILES kcm_kdev_upload.desktop DESTINATION ${SERVICES_INSTALL_DIR}) | |