summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-12 08:08:07 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-12 08:08:07 (GMT)
commita8e8790b414eea5dd507ec127c40c5ade823d388 (patch)
tree966d3c5e57c663d79059547475605c2be732bf18
parent22077b86148dfe603c2c4d46dd4ca558cf5ef905 (diff)
Convert more plugins
-rw-r--r--kmail/editorplugins/nonbreakingspace/CMakeLists.txt5
-rw-r--r--kmail/editorplugins/zoomtext/CMakeLists.txt7
2 files changed, 6 insertions, 6 deletions
diff --git a/kmail/editorplugins/nonbreakingspace/CMakeLists.txt b/kmail/editorplugins/nonbreakingspace/CMakeLists.txt
index 1eca397..96f2696 100644
--- a/kmail/editorplugins/nonbreakingspace/CMakeLists.txt
+++ b/kmail/editorplugins/nonbreakingspace/CMakeLists.txt
@@ -3,14 +3,13 @@ set(kmail_nonbreakingspaceeditorplugin_SRCS
nonbreakingspaceplugineditorinterface.cpp
)
-add_library(kmail_nonbreakingspaceeditorplugin MODULE ${kmail_nonbreakingspaceeditorplugin_SRCS})
+kcoreaddons_add_plugin(kmail_nonbreakingspaceeditorplugin JSON kmail_nonbreakingspaceeditorplugin.json SOURCES
+ ${kmail_nonbreakingspaceeditorplugin_SRCS} INSTALL_NAMESPACE kmail)
target_link_libraries(kmail_nonbreakingspaceeditorplugin
KF5::IconThemes KF5::MessageComposer KF5::XmlGui KF5::I18n
)
-install(TARGETS kmail_nonbreakingspaceeditorplugin DESTINATION ${PLUGIN_INSTALL_DIR}/kmail)
-
if(BUILD_TESTING)
add_subdirectory(autotests)
endif()
diff --git a/kmail/editorplugins/zoomtext/CMakeLists.txt b/kmail/editorplugins/zoomtext/CMakeLists.txt
index d0411b1..83c7b34 100644
--- a/kmail/editorplugins/zoomtext/CMakeLists.txt
+++ b/kmail/editorplugins/zoomtext/CMakeLists.txt
@@ -5,14 +5,15 @@ set(kmail_zoomtexteditorplugin_SRCS
ecm_qt_declare_logging_category(kmail_zoomtexteditorplugin_SRCS HEADER zoomtexteditorplugin_debug.h IDENTIFIER KMAIL_EDITOR_ZOOMTEXT_PLUGIN_LOG CATEGORY_NAME log_kmail_zoomtexteditorplugin)
-add_library(kmail_zoomtexteditorplugin MODULE ${kmail_zoomtexteditorplugin_SRCS})
+
+kcoreaddons_add_plugin(kmail_zoomtexteditorplugin JSON kmail_zoomtexteditorplugin.json SOURCES
+ ${kmail_zoomtexteditorplugin_SRCS} INSTALL_NAMESPACE kmail)
+
target_link_libraries(kmail_zoomtexteditorplugin
KF5::IconThemes KF5::MessageComposer KF5::XmlGui KF5::I18n
)
-install(TARGETS kmail_zoomtexteditorplugin DESTINATION ${PLUGIN_INSTALL_DIR}/kmail)
-
if(BUILD_TESTING)
add_subdirectory(autotests)
endif()