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

Use more target cmake centric code

parent bec5698d
Pipeline #66098 passed with stage
in 53 minutes and 59 seconds
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
)
kcoreaddons_add_plugin(kaddressbook_sendvcardsplugin JSON kaddressbook_sendvcardsplugin.json INSTALL_NAMESPACE kaddressbook/mainview)
set(kaddressbook_sendvcardsplugin_SRCS
target_sources(kaddressbook_sendvcardsplugin PRIVATE
sendvcardsplugininterface.cpp
sendvcardsplugin.cpp
sendvcardsjob.cpp
)
ecm_qt_declare_logging_category(kaddressbook_sendvcardsplugin_SRCS HEADER kaddressbook_sendvcardsplugin_debug.h IDENTIFIER KADDRESSBOOK_SENDVCARDS_LOG CATEGORY_NAME org.kde.pim.kaddressbook_sendvcards
ecm_qt_declare_logging_category(kaddressbook_sendvcardsplugin HEADER kaddressbook_sendvcardsplugin_debug.h IDENTIFIER KADDRESSBOOK_SENDVCARDS_LOG CATEGORY_NAME org.kde.pim.kaddressbook_sendvcards
DESCRIPTION "kdepim-addons (kaddressbook send vcard plugin)"
OLD_CATEGORY_NAMES log_kaddressbook_sendvcards
EXPORT KDEPIMADDONS
......@@ -15,8 +16,6 @@ ecm_qt_declare_logging_category(kaddressbook_sendvcardsplugin_SRCS HEADER kaddre
kcoreaddons_add_plugin(kaddressbook_sendvcardsplugin JSON kaddressbook_sendvcardsplugin.json SOURCES
${kaddressbook_sendvcardsplugin_SRCS} INSTALL_NAMESPACE kaddressbook/mainview)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
......
......@@ -25,21 +25,20 @@ install(TARGETS shorturlpluginprivate ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRAR
add_subdirectory(shorturlengineplugin)
kcoreaddons_add_plugin(kmail_insertshorturleditorplugin JSON kmail_insertshorturleditorplugin.json INSTALL_NAMESPACE kmail/plugineditor)
set(kmail_insertshorturleditorplugin_SRCS
target_sources(kmail_insertshorturleditorplugin PRIVATE
insertshorturlplugineditor.cpp
insertshorturlplugineditorinterface.cpp
insertshorturlconfiguredialog.cpp
insertshorturlconfigurewidget.cpp
${pimcommon_shorturlplugin_shorturllib_SRCS}
)
ecm_qt_declare_logging_category(kmail_insertshorturleditorplugin_SRCS HEADER kmail_insertshorturl_debug.h IDENTIFIER KMAIL_INSERTSHORTURL_LOG CATEGORY_NAME org.kde.pim.kmail_insertshorturl
ecm_qt_declare_logging_category(kmail_insertshorturleditorplugin HEADER kmail_insertshorturl_debug.h IDENTIFIER KMAIL_INSERTSHORTURL_LOG CATEGORY_NAME org.kde.pim.kmail_insertshorturl
DESCRIPTION "kdepim-addons (kmail insert short url plugin)"
EXPORT KDEPIMADDONS
)
kcoreaddons_add_plugin(kmail_insertshorturleditorplugin JSON kmail_insertshorturleditorplugin.json SOURCES
${kmail_insertshorturleditorplugin_SRCS} INSTALL_NAMESPACE kmail/plugineditor)
target_link_libraries(kmail_insertshorturleditorplugin
KF5::MessageComposer KF5::XmlGui KF5::I18n shorturlpluginprivate KF5::CoreAddons
......
set(pimcommon_isgdshorturlengineplugin_SRCS
kcoreaddons_add_plugin(pimcommon_isgdshorturlengineplugin JSON pimcommon_isgdshorturlengineplugin.json INSTALL_NAMESPACE pimcommon/shorturlengine)
target_sources(pimcommon_isgdshorturlengineplugin PRIVATE
isgdshorturlengineplugin.cpp
isgdshorturlengineinterface.cpp
)
ecm_qt_declare_logging_category(pimcommon_isgdshorturlengineplugin_SRCS HEADER isgdshorturlengineplugin_debug.h IDENTIFIER ISGDSHORTURLENGINEPLUGIN_LOG CATEGORY_NAME org.kde.pim.isgdshorturlengineplugin
ecm_qt_declare_logging_category(pimcommon_isgdshorturlengineplugin HEADER isgdshorturlengineplugin_debug.h IDENTIFIER ISGDSHORTURLENGINEPLUGIN_LOG CATEGORY_NAME org.kde.pim.isgdshorturlengineplugin
DESCRIPTION "kdepim-addons (shorturl engine isgd)"
OLD_CATEGORY_NAMES log_isgdshorturlengineplugin
EXPORT KDEPIMADDONS
)
kcoreaddons_add_plugin(pimcommon_isgdshorturlengineplugin JSON pimcommon_isgdshorturlengineplugin.json SOURCES
${pimcommon_isgdshorturlengineplugin_SRCS} INSTALL_NAMESPACE pimcommon/shorturlengine)
target_link_libraries(pimcommon_isgdshorturlengineplugin
KF5::Service KF5::I18n Qt::Network KF5::CoreAddons shorturlpluginprivate Qt::Gui
......
set(kmail_insertspecialcharactereditorplugin_SRCS
kcoreaddons_add_plugin(kmail_insertspecialcharactereditorplugin JSON kmail_insertspecialcharactereditorplugin.json INSTALL_NAMESPACE kmail/plugineditor)
target_sources(kmail_insertspecialcharactereditorplugin PRIVATE
insertspecialcharacterplugineditor.cpp
insertspecialcharacterplugineditorinterface.cpp
)
kcoreaddons_add_plugin(kmail_insertspecialcharactereditorplugin JSON kmail_insertspecialcharactereditorplugin.json SOURCES
${kmail_insertspecialcharactereditorplugin_SRCS} INSTALL_NAMESPACE kmail/plugineditor)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(kmail_insertspecialcharactereditorplugin PROPERTIES UNITY_BUILD ON)
endif()
......
set(kmail_nonbreakingspaceeditorplugin_SRCS
kcoreaddons_add_plugin(kmail_nonbreakingspaceeditorplugin JSON kmail_nonbreakingspaceeditorplugin.json INSTALL_NAMESPACE kmail/plugineditor)
target_sources(kmail_nonbreakingspaceeditorplugin PRIVATE
nonbreakingspaceplugineditor.cpp
nonbreakingspaceplugineditorinterface.cpp
)
kcoreaddons_add_plugin(kmail_nonbreakingspaceeditorplugin JSON kmail_nonbreakingspaceeditorplugin.json SOURCES
${kmail_nonbreakingspaceeditorplugin_SRCS} INSTALL_NAMESPACE kmail/plugineditor)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(kmail_nonbreakingspaceeditorplugin PROPERTIES UNITY_BUILD ON)
endif()
......
......@@ -29,20 +29,19 @@ install(TARGETS kmailquicktextpluginprivate ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}
if(BUILD_TESTING)
add_subdirectory(autotests)
endif()
set(kmail_quicktextplugin_SRCS
kcoreaddons_add_plugin(kmail_quicktextplugin JSON kmail_quicktextplugin.json INSTALL_NAMESPACE kmail/plugineditor)
target_sources(kmail_quicktextplugin PRIVATE
quicktextplugineditor.cpp
quicktextplugineditorinterface.cpp
)
ecm_qt_declare_logging_category(kmail_quicktextplugin_SRCS HEADER quicktextplugin_debug.h IDENTIFIER KMAIL_EDITOR_QUICKTEXT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_quicktextplugin
ecm_qt_declare_logging_category(kmail_quicktextplugin HEADER quicktextplugin_debug.h IDENTIFIER KMAIL_EDITOR_QUICKTEXT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_quicktextplugin
DESCRIPTION "kdepim-addons (kmail quicktext editor plugin)"
EXPORT KDEPIMADDONS
)
kcoreaddons_add_plugin(kmail_quicktextplugin JSON kmail_quicktextplugin.json SOURCES
${kmail_quicktextplugin_SRCS} INSTALL_NAMESPACE kmail/plugineditor)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(kmail_quicktextplugin PROPERTIES UNITY_BUILD ON)
endif()
......
set(kmail_sharetexteditorplugin_SRCS
kcoreaddons_add_plugin(kmail_sharetexteditorplugin JSON kmail_sharetexteditorplugin.json INSTALL_NAMESPACE kmail/plugineditor)
target_sources(kmail_sharetexteditorplugin PRIVATE
sharetextplugineditor.cpp
sharetextplugineditorinterface.cpp
sharetextpurposemenuwidget.cpp
)
ecm_qt_declare_logging_category(kmail_sharetexteditorplugin_SRCS HEADER sharetexteditorplugin_debug.h IDENTIFIER KMAIL_EDITOR_SHARETEXT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_sharetexteditorplugin
ecm_qt_declare_logging_category(kmail_sharetexteditorplugin HEADER sharetexteditorplugin_debug.h IDENTIFIER KMAIL_EDITOR_SHARETEXT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_sharetexteditorplugin
DESCRIPTION "kdepim-addons (share text editor plugin)"
EXPORT KDEPIMADDONS
)
kcoreaddons_add_plugin(kmail_sharetexteditorplugin JSON kmail_sharetexteditorplugin.json SOURCES
${kmail_sharetexteditorplugin_SRCS} INSTALL_NAMESPACE kmail/plugineditor)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(kmail_sharetexteditorplugin PROPERTIES UNITY_BUILD ON)
endif()
......
set(kmail_antispamplugin_SRCS
kcoreaddons_add_plugin(kmail_antispamplugin JSON kmail_antispamplugin.json INSTALL_NAMESPACE kmail/mainview)
target_sources(kmail_antispamplugin PRIVATE
antispamplugin.cpp
antispamplugininterface.cpp
../common/antispamwizard.cpp
../common/antispam.qrc
)
kcoreaddons_add_plugin(kmail_antispamplugin JSON kmail_antispamplugin.json SOURCES
${kmail_antispamplugin_SRCS} INSTALL_NAMESPACE kmail/mainview)
target_link_libraries(kmail_antispamplugin
KF5::PimCommonAkonadi KF5::Completion KF5::MailCommon KF5::XmlGui KF5::I18n KF5::GuiAddons
)
......
set(kmail_antivirusplugin_SRCS
kcoreaddons_add_plugin(kmail_antivirusplugin JSON kmail_antivirusplugin.json SOURCES
${kmail_antivirusplugin_SRCS} INSTALL_NAMESPACE kmail/mainview)
target_sources(kmail_antivirusplugin PRIVATE
antivirusplugin.cpp
antivirusplugininterface.cpp
../common/antispamwizard.cpp
../common/antispam.qrc
)
kcoreaddons_add_plugin(kmail_antivirusplugin JSON kmail_antivirusplugin.json SOURCES
${kmail_antivirusplugin_SRCS} INSTALL_NAMESPACE kmail/mainview)
target_link_libraries(kmail_antivirusplugin
KF5::PimCommonAkonadi KF5::Completion KF5::MailCommon KF5::AkonadiWidgets KF5::XmlGui KF5::Libkdepim KF5::I18n KF5::GuiAddons
......
set(kmail_logactivitiesplugin_SRCS
kcoreaddons_add_plugin(kmail_logactivitiesplugin JSON kmail_logactivitiesplugin.json INSTALL_NAMESPACE kmail/mainview)
target_sources(kmail_logactivitiesplugin PRIVATE
logactivitiesplugin.cpp
logactivitiesplugininterface.cpp
)
kcoreaddons_add_plugin(kmail_logactivitiesplugin JSON kmail_logactivitiesplugin.json SOURCES
${kmail_logactivitiesplugin_SRCS} INSTALL_NAMESPACE kmail/mainview)
target_link_libraries(kmail_logactivitiesplugin
KF5::PimCommon KF5::PimCommonAkonadi KF5::XmlGui KF5::Libkdepim KF5::I18n
......
set(pimcommon_translatorplugin_SRCS
kcoreaddons_add_plugin(pimcommon_translatorplugin JSON pimcommon_translatorplugin.json INSTALL_NAMESPACE pimcommon/customtools)
target_sources(pimcommon_translatorplugin PRIVATE
translatorplugin.cpp
translatorview.cpp
)
kcoreaddons_add_plugin(pimcommon_translatorplugin JSON pimcommon_translatorplugin.json SOURCES
${pimcommon_translatorplugin_SRCS} INSTALL_NAMESPACE pimcommon/customtools)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(pimcommon_translatorplugin PROPERTIES UNITY_BUILD ON)
endif()
......
set(messageviewer_dkimconfigplugin_SRCS
kcoreaddons_add_plugin(messageviewer_dkimconfigplugin JSON messageviewer_dkimconfigplugin.json INSTALL_NAMESPACE messageviewer/configuresettings)
target_sources(messageviewer_dkimconfigplugin PRIVATE
dkimconfiguresettingsplugin.cpp
)
kcoreaddons_add_plugin(messageviewer_dkimconfigplugin JSON messageviewer_dkimconfigplugin.json SOURCES
${messageviewer_dkimconfigplugin_SRCS} INSTALL_NAMESPACE messageviewer/configuresettings)
target_link_libraries(messageviewer_dkimconfigplugin
KF5::MessageViewer
......
......@@ -28,12 +28,11 @@ set_target_properties(expireaccounttrashfolderconfig
install(TARGETS expireaccounttrashfolderconfig ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
set(messageviewer_expireaccounttrashfolderconfigplugin_SRCS
expireaccounttrashfolderconfigplugin.cpp
)
kcoreaddons_add_plugin(messageviewer_expireaccounttrashfolderconfigplugin JSON messageviewer_expireaccounttrashfolderconfigplugin.json SOURCES
${messageviewer_expireaccounttrashfolderconfigplugin_SRCS} INSTALL_NAMESPACE messageviewer/configuresettings)
kcoreaddons_add_plugin(messageviewer_expireaccounttrashfolderconfigplugin JSON messageviewer_expireaccounttrashfolderconfigplugin.json INSTALL_NAMESPACE messageviewer/configuresettings)
target_sources(messageviewer_expireaccounttrashfolderconfigplugin PRIVATE
expireaccounttrashfolderconfigplugin.cpp
)
target_link_libraries(messageviewer_expireaccounttrashfolderconfigplugin
KF5::MessageViewer
......
set(messageviewer_standardsheaderstyleplugin_SRCS
kcoreaddons_add_plugin(messageviewer_standardsheaderstyleplugin JSON messageviewer_standardsheaderstyleplugin.json INSTALL_NAMESPACE messageviewer/headerstyle)
target_sources(messageviewer_standardsheaderstyleplugin PRIVATE
standardsheaderstyleplugin.cpp
standardsheaderstyleinterface.cpp
standardheaderstrategy.cpp
)
kcoreaddons_add_plugin(messageviewer_standardsheaderstyleplugin JSON messageviewer_standardsheaderstyleplugin.json SOURCES
${messageviewer_standardsheaderstyleplugin_SRCS} INSTALL_NAMESPACE messageviewer/headerstyle)
target_link_libraries(messageviewer_standardsheaderstyleplugin
KF5::MessageViewer
......
set(messageviewer_translatorplugin_SRCS
kcoreaddons_add_plugin(messageviewer_translatorplugin JSON messageviewer_translatorplugin.json INSTALL_NAMESPACE messageviewer/viewercommonplugin)
target_sources(messageviewer_translatorplugin PRIVATE
viewerplugintranslator.cpp
viewerplugintranslatorinterface.cpp
)
kcoreaddons_add_plugin(messageviewer_translatorplugin JSON messageviewer_translatorplugin.json SOURCES
${messageviewer_translatorplugin_SRCS} INSTALL_NAMESPACE messageviewer/viewercommonplugin)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(messageviewer_translatorplugin PROPERTIES UNITY_BUILD ON)
endif()
......
set(messageviewer_createeventplugin_SRCS
kcoreaddons_add_plugin(messageviewer_createeventplugin JSON messageviewer_createeventplugin.json INSTALL_NAMESPACE messageviewer/viewerplugin)
target_sources(messageviewer_createeventplugin PRIVATE
viewerplugincreateevent.cpp
viewerplugincreateeventinterface.cpp
eventedit.cpp
......@@ -6,15 +7,13 @@ set(messageviewer_createeventplugin_SRCS
createeventjob.cpp
)
ecm_qt_declare_logging_category(messageviewer_createeventplugin_SRCS HEADER createeventplugin_debug.h IDENTIFIER CREATEEVENTPLUGIN_LOG CATEGORY_NAME org.kde.pim.createeventplugin
ecm_qt_declare_logging_category(messageviewer_createeventplugin HEADER createeventplugin_debug.h IDENTIFIER CREATEEVENTPLUGIN_LOG CATEGORY_NAME org.kde.pim.createeventplugin
DESCRIPTION "kdepim-addons (create event plugin)"
OLD_CATEGORY_NAMES log_createeventplugin
EXPORT KDEPIMADDONS
)
kcoreaddons_add_plugin(messageviewer_createeventplugin JSON messageviewer_createeventplugin.json SOURCES
${messageviewer_createeventplugin_SRCS} INSTALL_NAMESPACE messageviewer/viewerplugin)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(messageviewer_createeventplugin PROPERTIES UNITY_BUILD ON)
......
Markdown is supported
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