summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-13 06:59:08 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-13 06:59:08 (GMT)
commite9bc132a7aac024a39ecf06f8e7016a702b3f8ee (patch)
treef22b7116c69a1dc137550c1c2850f422f9fea076
parent4f2df12fe8bca9c566079d53fc05845aa4953025 (diff)
Port to kdecoreaddons plugins
-rw-r--r--plugins/messageviewerheaderplugins/allheaderstyleplugin/CMakeLists.txt6
-rw-r--r--plugins/messageviewerheaderplugins/briefheaderstyleplugin/CMakeLists.txt5
2 files changed, 5 insertions, 6 deletions
diff --git a/plugins/messageviewerheaderplugins/allheaderstyleplugin/CMakeLists.txt b/plugins/messageviewerheaderplugins/allheaderstyleplugin/CMakeLists.txt
index 31b27b3..4407539 100644
--- a/plugins/messageviewerheaderplugins/allheaderstyleplugin/CMakeLists.txt
+++ b/plugins/messageviewerheaderplugins/allheaderstyleplugin/CMakeLists.txt
@@ -4,12 +4,12 @@ set(messageviewer_allheaderstyleplugin_SRCS
allheaderstrategy.cpp
)
-add_library(messageviewer_allheaderstyleplugin MODULE ${messageviewer_allheaderstyleplugin_SRCS})
+kcoreaddons_add_plugin(messageviewer_allheaderstyleplugin JSON messageviewer_allheaderstyleplugin.json SOURCES
+ ${messageviewer_allheaderstyleplugin_SRCS} INSTALL_NAMESPACE messageviewer)
+
target_link_libraries(messageviewer_allheaderstyleplugin
KF5::MessageViewer
KF5::XmlGui
KF5::I18n
)
-
-install(TARGETS messageviewer_allheaderstyleplugin DESTINATION ${PLUGIN_INSTALL_DIR}/messageviewer)
diff --git a/plugins/messageviewerheaderplugins/briefheaderstyleplugin/CMakeLists.txt b/plugins/messageviewerheaderplugins/briefheaderstyleplugin/CMakeLists.txt
index 73ec215..cb5a7dd 100644
--- a/plugins/messageviewerheaderplugins/briefheaderstyleplugin/CMakeLists.txt
+++ b/plugins/messageviewerheaderplugins/briefheaderstyleplugin/CMakeLists.txt
@@ -5,12 +5,11 @@ set(messageviewer_briefheaderstyleplugin_SRCS
briefheaderstrategy.cpp
)
-add_library(messageviewer_briefheaderstyleplugin MODULE ${messageviewer_briefheaderstyleplugin_SRCS})
+kcoreaddons_add_plugin(messageviewer_briefheaderstyleplugin JSON messageviewer_briefheaderstyleplugin.json SOURCES
+ ${messageviewer_briefheaderstyleplugin_SRCS} INSTALL_NAMESPACE messageviewer)
target_link_libraries(messageviewer_briefheaderstyleplugin
KF5::MessageViewer
KF5::XmlGui
KF5::I18n
)
-
-install(TARGETS messageviewer_briefheaderstyleplugin DESTINATION ${PLUGIN_INSTALL_DIR}/messageviewer)