summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-13 20:49:07 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-13 20:49:07 (GMT)
commite01c96a7df4a5a3ed8087dff88dea7f53a10d70d (patch)
tree97c09b12190ecb4e0a68813825e7befc5f411fd1
parent36d12e5d96d52779e7bcce4b64ba6d5b8ed6dd9d (diff)
Use kcoreaddons macro
-rw-r--r--kaddressbook/plugins/searchduplicates/CMakeLists.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/kaddressbook/plugins/searchduplicates/CMakeLists.txt b/kaddressbook/plugins/searchduplicates/CMakeLists.txt
index a0f9278..aeeca06 100644
--- a/kaddressbook/plugins/searchduplicates/CMakeLists.txt
+++ b/kaddressbook/plugins/searchduplicates/CMakeLists.txt
@@ -3,10 +3,9 @@ set(kaddressbook_searchduplicatesplugin_SRCS
searchduplicatesplugin.cpp
)
-add_library(kaddressbook_searchduplicatesplugin MODULE ${kaddressbook_searchduplicatesplugin_SRCS})
+kcoreaddons_add_plugin(kaddressbook_searchduplicatesplugin JSON kaddressbook_searchduplicatesplugin.json SOURCES
+ ${kaddressbook_searchduplicatesplugin_SRCS} INSTALL_NAMESPACE kaddressbook)
target_link_libraries(kaddressbook_searchduplicatesplugin
KF5::PimCommon KF5::Completion KF5::IconThemes KF5::MailCommon KF5::XmlGui kaddressbookmergelibprivate KF5::I18n
)
-
-install(TARGETS kaddressbook_searchduplicatesplugin DESTINATION ${PLUGIN_INSTALL_DIR}/kaddressbook)