summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-12 08:42:51 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-12 08:42:51 (GMT)
commit3c96313076d6158397cab51de6026debb7d0a765 (patch)
tree02e17672c08fa6396fe83a60c498ff0de48609a6
parenta8e8790b414eea5dd507ec127c40c5ade823d388 (diff)
Convert more CMakeLists
-rw-r--r--kmail/editorsendcheckplugins/automaticaddcontacts/CMakeLists.txt5
-rw-r--r--kmail/editorsendcheckplugins/checkbeforesend/CMakeLists.txt5
-rw-r--r--kmail/editorsendcheckplugins/confirm-address/CMakeLists.txt5
3 files changed, 6 insertions, 9 deletions
diff --git a/kmail/editorsendcheckplugins/automaticaddcontacts/CMakeLists.txt b/kmail/editorsendcheckplugins/automaticaddcontacts/CMakeLists.txt
index bfe5f2c..07d438f 100644
--- a/kmail/editorsendcheckplugins/automaticaddcontacts/CMakeLists.txt
+++ b/kmail/editorsendcheckplugins/automaticaddcontacts/CMakeLists.txt
@@ -9,14 +9,13 @@ set(kmail_automaticaddcontactseditorplugin_SRCS
ecm_qt_declare_logging_category(kmail_automaticaddcontactseditorplugin_SRCS HEADER automaticaddcontactsplugin_debug.h IDENTIFIER KMAIL_EDITOR_AUTOMATICADDCONTACTS_PLUGIN_LOG CATEGORY_NAME log_kmail_automaticaddcontactsplugin)
-add_library(kmail_automaticaddcontactseditorplugin MODULE ${kmail_automaticaddcontactseditorplugin_SRCS})
+kcoreaddons_add_plugin(kmail_automaticaddcontactseditorplugin JSON kmail_automaticaddcontactsplugin.json SOURCES
+ ${kmail_automaticaddcontactseditorplugin_SRCS} INSTALL_NAMESPACE kmail)
target_link_libraries(kmail_automaticaddcontactseditorplugin
KF5::IconThemes KF5::MessageComposer KF5::I18n KF5::PimCommon
)
-install(TARGETS kmail_automaticaddcontactseditorplugin DESTINATION ${PLUGIN_INSTALL_DIR}/kmail)
-
if(BUILD_TESTING)
add_subdirectory(autotests)
endif()
diff --git a/kmail/editorsendcheckplugins/checkbeforesend/CMakeLists.txt b/kmail/editorsendcheckplugins/checkbeforesend/CMakeLists.txt
index aae6b7d..b5723e8 100644
--- a/kmail/editorsendcheckplugins/checkbeforesend/CMakeLists.txt
+++ b/kmail/editorsendcheckplugins/checkbeforesend/CMakeLists.txt
@@ -10,14 +10,13 @@ set(kmail_checkbeforesendeditorplugin_SRCS
ecm_qt_declare_logging_category(kmail_checkbeforesendeditorplugin_SRCS HEADER checkbeforesendplugin_debug.h IDENTIFIER KMAIL_EDITOR_checkbeforesend_PLUGIN_LOG CATEGORY_NAME log_kmail_checkbeforesendplugin)
-add_library(kmail_checkbeforesendeditorplugin MODULE ${kmail_checkbeforesendeditorplugin_SRCS})
+kcoreaddons_add_plugin(kmail_checkbeforesendeditorplugin JSON kmail_checkbeforesendplugin.json SOURCES
+ ${kmail_checkbeforesendeditorplugin_SRCS} INSTALL_NAMESPACE kmail)
target_link_libraries(kmail_checkbeforesendeditorplugin
KF5::IconThemes KF5::MessageComposer KF5::I18n
)
-install(TARGETS kmail_checkbeforesendeditorplugin DESTINATION ${PLUGIN_INSTALL_DIR}/kmail)
-
if(BUILD_TESTING)
add_subdirectory(autotests)
endif()
diff --git a/kmail/editorsendcheckplugins/confirm-address/CMakeLists.txt b/kmail/editorsendcheckplugins/confirm-address/CMakeLists.txt
index 94b247f..d00683c 100644
--- a/kmail/editorsendcheckplugins/confirm-address/CMakeLists.txt
+++ b/kmail/editorsendcheckplugins/confirm-address/CMakeLists.txt
@@ -11,14 +11,13 @@ set(kmail_confirmaddresseditorplugin_SRCS
ecm_qt_declare_logging_category(kmail_confirmaddresseditorplugin_SRCS HEADER confirmaddressplugin_debug.h IDENTIFIER KMAIL_EDITOR_CONFIRMADDRESS_PLUGIN_LOG CATEGORY_NAME log_kmail_confirmaddressplugin)
-add_library(kmail_confirmaddresseditorplugin MODULE ${kmail_confirmaddresseditorplugin_SRCS})
+kcoreaddons_add_plugin(kmail_confirmaddresseditorplugin JSON kmail_confirmaddressplugin.json SOURCES
+ ${kmail_confirmaddresseditorplugin_SRCS} INSTALL_NAMESPACE kmail)
target_link_libraries(kmail_confirmaddresseditorplugin
KF5::IconThemes KF5::MessageComposer KF5::I18n KF5::PimCommon
)
-install(TARGETS kmail_confirmaddresseditorplugin DESTINATION ${PLUGIN_INSTALL_DIR}/kmail)
-
if(BUILD_TESTING)
add_subdirectory(autotests)
endif()