summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-19 04:47:44 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-19 04:48:00 (GMT)
commit5597dcb6d656f5133e81473a42de47ff5bf5ca3a (patch)
treef6cb1f3d30cb855047090bb4fcacc0adca191a83
parent1702848f87825064ab83ca370914539b68699f10 (diff)
USe kcoreaddons macros
-rw-r--r--examples/kmail/editorplugins/rot13/CMakeLists.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/kmail/editorplugins/rot13/CMakeLists.txt b/examples/kmail/editorplugins/rot13/CMakeLists.txt
index 7405eb6..580b6d5 100644
--- a/examples/kmail/editorplugins/rot13/CMakeLists.txt
+++ b/examples/kmail/editorplugins/rot13/CMakeLists.txt
@@ -4,14 +4,13 @@ set(kmail_rot13editorplugin_SRCS
rot13job.cpp
)
-add_library(kmail_rot13editorplugin MODULE ${kmail_rot13editorplugin_SRCS})
+kcoreaddons_add_plugin(kmail_rot13editorplugin JSON kmail_rot13editorplugin.json SOURCES
+ ${kmail_rot13editorplugin_SRCS} INSTALL_NAMESPACE kmail)
target_link_libraries(kmail_rot13editorplugin
KF5::IconThemes KF5::MessageComposer KF5::XmlGui KF5::I18n
)
-install(TARGETS kmail_rot13editorplugin DESTINATION ${PLUGIN_INSTALL_DIR}/kmail)
-
if(BUILD_TESTING)
add_subdirectory(autotests)
endif()