Commit 36d12e5d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add kcoreaddons macro

parent e9bc132a
......@@ -11,13 +11,14 @@ set(kaddressbook_sendmailplugin_SRCS
ecm_qt_declare_logging_category(kaddressbook_sendmailplugin_SRCS HEADER kaddressbook_sendmailplugin_debug.h IDENTIFIER KADDRESSBOOK_SENDMAIL_LOG CATEGORY_NAME log_kaddressbook_sendmail)
add_library(kaddressbook_sendmailplugin MODULE ${kaddressbook_sendmailplugin_SRCS})
kcoreaddons_add_plugin(kaddressbook_sendmailplugin JSON kaddressbook_sendmailplugin.json SOURCES
${kaddressbook_sendmailplugin_SRCS} INSTALL_NAMESPACE kaddressbook)
target_link_libraries(kaddressbook_sendmailplugin
KF5::PimCommon KF5::Completion KF5::IconThemes KF5::MailCommon KF5::XmlGui KF5::I18n
)
install(TARGETS kaddressbook_sendmailplugin DESTINATION ${PLUGIN_INSTALL_DIR}/kaddressbook)
if (BUILD_TESTING)
add_subdirectory(autotests)
endif()
......
......@@ -9,14 +9,15 @@ set(kaddressbook_sendvcardsplugin_SRCS
)
ecm_qt_declare_logging_category(kaddressbook_sendvcardsplugin_SRCS HEADER kaddressbook_sendvcardsplugin_debug.h IDENTIFIER KADDRESSBOOK_SENDVCARDS_LOG CATEGORY_NAME log_kaddressbook_sendvcards)
add_library(kaddressbook_sendvcardsplugin MODULE ${kaddressbook_sendvcardsplugin_SRCS})
kcoreaddons_add_plugin(kaddressbook_sendvcardsplugin JSON kaddressbook_sendvcardsplugin.json SOURCES
${kaddressbook_sendvcardsplugin_SRCS} INSTALL_NAMESPACE kaddressbook)
target_link_libraries(kaddressbook_sendvcardsplugin
KF5::PimCommon KF5::Completion KF5::IconThemes KF5::MailCommon KF5::XmlGui KF5::MimeTreeParser KF5::I18n
)
install(TARGETS kaddressbook_sendvcardsplugin DESTINATION ${PLUGIN_INSTALL_DIR}/kaddressbook)
if (BUILD_TESTING)
add_subdirectory(autotests)
endif()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment