summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-18 12:56:30 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-18 12:56:30 (GMT)
commit956ac2dae9252be6a4a33d0917314711af774cc1 (patch)
tree66e7b91ddf547dda0c537b2a9c4e5c12963a5d0d
parenta58b0ad60d7fc4fc7cdf22cbc0cf0ab0d82527a3 (diff)
Use kdecoreaddons macro
-rw-r--r--messageviewer/src/messageviewerheaderplugins/standardsheaderstyleplugin/CMakeLists.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/messageviewer/src/messageviewerheaderplugins/standardsheaderstyleplugin/CMakeLists.txt b/messageviewer/src/messageviewerheaderplugins/standardsheaderstyleplugin/CMakeLists.txt
index 7c7eee0..fd313c7 100644
--- a/messageviewer/src/messageviewerheaderplugins/standardsheaderstyleplugin/CMakeLists.txt
+++ b/messageviewer/src/messageviewerheaderplugins/standardsheaderstyleplugin/CMakeLists.txt
@@ -4,7 +4,8 @@ set(messageviewer_standardsheaderstyleplugin_SRCS
standardheaderstrategy.cpp
)
-add_library(messageviewer_standardsheaderstyleplugin MODULE ${messageviewer_standardsheaderstyleplugin_SRCS})
+kcoreaddons_add_plugin(messageviewer_standardsheaderstyleplugin JSON messageviewer_standardsheaderstyleplugin.json SOURCES
+ ${messageviewer_standardsheaderstyleplugin_SRCS} INSTALL_NAMESPACE messageviewer)
target_link_libraries(messageviewer_standardsheaderstyleplugin
KF5::MessageViewer
@@ -12,5 +13,3 @@ target_link_libraries(messageviewer_standardsheaderstyleplugin
KF5::I18n
KF5::GrantleeTheme
)
-
-install(TARGETS messageviewer_standardsheaderstyleplugin DESTINATION ${PLUGIN_INSTALL_DIR}/messageviewer)