Commit a0bf5e08 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use kcoreaddons macro for plugins

parent 5aee3f02
......@@ -5,11 +5,10 @@ set(messageviewer_expandurlplugin_SRCS
ecm_qt_declare_logging_category(messageviewer_expandurlplugin_SRCS HEADER expandurlplugin_debug.h IDENTIFIER EXPANDURLPLUGIN_LOG CATEGORY_NAME log_expandurlplugin)
add_library(messageviewer_expandurlplugin MODULE ${messageviewer_expandurlplugin_SRCS})
kcoreaddons_add_plugin(messageviewer_expandurlplugin JSON messageviewer_expandurlplugin.json SOURCES
${messageviewer_expandurlplugin_SRCS} INSTALL_NAMESPACE messageviewer)
target_link_libraries(messageviewer_expandurlplugin
KF5::MessageViewer KF5::XmlGui KF5::Libkdepim KF5::I18n
)
install(TARGETS messageviewer_expandurlplugin DESTINATION ${PLUGIN_INSTALL_DIR}/messageviewer)
......@@ -3,11 +3,10 @@ set(messageviewer_translatorplugin_SRCS
viewerplugintranslatorinterface.cpp
)
add_library(messageviewer_translatorplugin MODULE ${messageviewer_translatorplugin_SRCS})
kcoreaddons_add_plugin(messageviewer_translatorplugin JSON messageviewer_translatorplugin.json SOURCES
${messageviewer_translatorplugin_SRCS} INSTALL_NAMESPACE messageviewer)
target_link_libraries(messageviewer_translatorplugin
KF5::MessageViewer KF5::XmlGui KF5::PimTextEdit KF5::I18n
)
install(TARGETS messageviewer_translatorplugin DESTINATION ${PLUGIN_INSTALL_DIR}/messageviewer)
......@@ -8,11 +8,11 @@ set(messageviewer_createeventplugin_SRCS
ecm_qt_declare_logging_category(messageviewer_createeventplugin_SRCS HEADER createeventplugin_debug.h IDENTIFIER CREATEEVENTPLUGIN_LOG CATEGORY_NAME log_createeventplugin)
add_library(messageviewer_createeventplugin MODULE ${messageviewer_createeventplugin_SRCS})
kcoreaddons_add_plugin(messageviewer_createeventplugin JSON messageviewer_createeventplugin.json SOURCES
${messageviewer_createeventplugin_SRCS} INSTALL_NAMESPACE messageviewer)
target_link_libraries(messageviewer_createeventplugin
KF5::MessageViewer KF5::XmlGui KF5::CalendarCore KF5::IncidenceEditor
)
install(TARGETS messageviewer_createeventplugin DESTINATION ${PLUGIN_INSTALL_DIR}/messageviewer)
......@@ -5,11 +5,12 @@ set(messageviewer_createnoteplugin_SRCS
createnotejob.cpp
)
ecm_qt_declare_logging_category(messageviewer_createnoteplugin_SRCS HEADER createnoteplugin_debug.h IDENTIFIER CREATENOTEPLUGIN_LOG CATEGORY_NAME log_createnoteplugin)
add_library(messageviewer_createnoteplugin MODULE ${messageviewer_createnoteplugin_SRCS})
kcoreaddons_add_plugin(messageviewer_createnoteplugin JSON messageviewer_createnoteplugin.json SOURCES
${messageviewer_createnoteplugin_SRCS} INSTALL_NAMESPACE messageviewer)
target_link_libraries(messageviewer_createnoteplugin
KF5::MessageViewer KF5::XmlGui KF5::CalendarCore KF5::AkonadiNotes KF5::IncidenceEditor
)
install(TARGETS messageviewer_createnoteplugin DESTINATION ${PLUGIN_INSTALL_DIR}/messageviewer)
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