summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-17 05:30:46 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-17 05:30:46 (GMT)
commita0bf5e084520eb7dd83aa10ac703d43ceb615289 (patch)
treeb3f0c7e1f201abab28242d53f259f452e1fc568e
parent5aee3f02c1051d0cfe714b45e4074b4195d3851b (diff)
Use kcoreaddons macro for plugins
-rw-r--r--plugins/messageviewerplugins/common/expandurlplugin/CMakeLists.txt5
-rw-r--r--plugins/messageviewerplugins/common/translatorplugin/CMakeLists.txt5
-rw-r--r--plugins/messageviewerplugins/createeventplugin/CMakeLists.txt6
-rw-r--r--plugins/messageviewerplugins/createnoteplugin/CMakeLists.txt7
4 files changed, 11 insertions, 12 deletions
diff --git a/plugins/messageviewerplugins/common/expandurlplugin/CMakeLists.txt b/plugins/messageviewerplugins/common/expandurlplugin/CMakeLists.txt
index 25ee424..bf01e3c 100644
--- a/plugins/messageviewerplugins/common/expandurlplugin/CMakeLists.txt
+++ b/plugins/messageviewerplugins/common/expandurlplugin/CMakeLists.txt
@@ -5,11 +5,10 @@ set(messageviewer_expandurlplugin_SRCS
ecm_qt_declare_logging_category(messageviewer_expandurlplugin_SRCS HEADER expandurlplugin_debug.h IDENTIFIER EXPANDURLPLUGIN_LOG CATEGORY_NAME log_expandurlplugin)
-add_library(messageviewer_expandurlplugin MODULE ${messageviewer_expandurlplugin_SRCS})
+kcoreaddons_add_plugin(messageviewer_expandurlplugin JSON messageviewer_expandurlplugin.json SOURCES
+ ${messageviewer_expandurlplugin_SRCS} INSTALL_NAMESPACE messageviewer)
target_link_libraries(messageviewer_expandurlplugin
KF5::MessageViewer KF5::XmlGui KF5::Libkdepim KF5::I18n
)
-
-install(TARGETS messageviewer_expandurlplugin DESTINATION ${PLUGIN_INSTALL_DIR}/messageviewer)
diff --git a/plugins/messageviewerplugins/common/translatorplugin/CMakeLists.txt b/plugins/messageviewerplugins/common/translatorplugin/CMakeLists.txt
index 8474fb6..ed0fa36 100644
--- a/plugins/messageviewerplugins/common/translatorplugin/CMakeLists.txt
+++ b/plugins/messageviewerplugins/common/translatorplugin/CMakeLists.txt
@@ -3,11 +3,10 @@ set(messageviewer_translatorplugin_SRCS
viewerplugintranslatorinterface.cpp
)
-add_library(messageviewer_translatorplugin MODULE ${messageviewer_translatorplugin_SRCS})
+kcoreaddons_add_plugin(messageviewer_translatorplugin JSON messageviewer_translatorplugin.json SOURCES
+ ${messageviewer_translatorplugin_SRCS} INSTALL_NAMESPACE messageviewer)
target_link_libraries(messageviewer_translatorplugin
KF5::MessageViewer KF5::XmlGui KF5::PimTextEdit KF5::I18n
)
-
-install(TARGETS messageviewer_translatorplugin DESTINATION ${PLUGIN_INSTALL_DIR}/messageviewer)
diff --git a/plugins/messageviewerplugins/createeventplugin/CMakeLists.txt b/plugins/messageviewerplugins/createeventplugin/CMakeLists.txt
index 0b10e38..3759988 100644
--- a/plugins/messageviewerplugins/createeventplugin/CMakeLists.txt
+++ b/plugins/messageviewerplugins/createeventplugin/CMakeLists.txt
@@ -8,11 +8,11 @@ set(messageviewer_createeventplugin_SRCS
ecm_qt_declare_logging_category(messageviewer_createeventplugin_SRCS HEADER createeventplugin_debug.h IDENTIFIER CREATEEVENTPLUGIN_LOG CATEGORY_NAME log_createeventplugin)
-add_library(messageviewer_createeventplugin MODULE ${messageviewer_createeventplugin_SRCS})
+kcoreaddons_add_plugin(messageviewer_createeventplugin JSON messageviewer_createeventplugin.json SOURCES
+ ${messageviewer_createeventplugin_SRCS} INSTALL_NAMESPACE messageviewer)
+
target_link_libraries(messageviewer_createeventplugin
KF5::MessageViewer KF5::XmlGui KF5::CalendarCore KF5::IncidenceEditor
)
-install(TARGETS messageviewer_createeventplugin DESTINATION ${PLUGIN_INSTALL_DIR}/messageviewer)
-
diff --git a/plugins/messageviewerplugins/createnoteplugin/CMakeLists.txt b/plugins/messageviewerplugins/createnoteplugin/CMakeLists.txt
index e78bd29..f591544 100644
--- a/plugins/messageviewerplugins/createnoteplugin/CMakeLists.txt
+++ b/plugins/messageviewerplugins/createnoteplugin/CMakeLists.txt
@@ -5,11 +5,12 @@ set(messageviewer_createnoteplugin_SRCS
createnotejob.cpp
)
ecm_qt_declare_logging_category(messageviewer_createnoteplugin_SRCS HEADER createnoteplugin_debug.h IDENTIFIER CREATENOTEPLUGIN_LOG CATEGORY_NAME log_createnoteplugin)
-add_library(messageviewer_createnoteplugin MODULE ${messageviewer_createnoteplugin_SRCS})
+
+kcoreaddons_add_plugin(messageviewer_createnoteplugin JSON messageviewer_createnoteplugin.json SOURCES
+ ${messageviewer_createnoteplugin_SRCS} INSTALL_NAMESPACE messageviewer)
+
target_link_libraries(messageviewer_createnoteplugin
KF5::MessageViewer KF5::XmlGui KF5::CalendarCore KF5::AkonadiNotes KF5::IncidenceEditor
)
-
-install(TARGETS messageviewer_createnoteplugin DESTINATION ${PLUGIN_INSTALL_DIR}/messageviewer)