Commit 5b13e0ad authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use more target centric cmake code

parent b2085b66
Pipeline #65642 passed with stage
in 53 minutes and 13 seconds
set(kaddressbook_importexport_csv_SRCS
kcoreaddons_add_plugin(kaddressbook_importexportcsvplugin JSON kaddressbook_importexportcsvplugin.json INSTALL_NAMESPACE kaddressbook/importexportplugin)
target_sources(kaddressbook_importexportcsvplugin PRIVATE
csvimportexportplugin.cpp
csvimportexportplugininterface.cpp
import/csvimportdialog.cpp
......@@ -9,8 +10,6 @@ set(kaddressbook_importexport_csv_SRCS
)
kcoreaddons_add_plugin(kaddressbook_importexportcsvplugin JSON kaddressbook_importexportcsvplugin.json SOURCES
${kaddressbook_importexport_csv_SRCS} INSTALL_NAMESPACE kaddressbook/importexportplugin)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(kaddressbook_importexportcsvplugin PROPERTIES UNITY_BUILD ON)
endif()
......
set(kaddressbook_importexport_gmx_SRCS
kcoreaddons_add_plugin(kaddressbook_importexportgmxplugin JSON kaddressbook_importexportgmxplugin.json INSTALL_NAMESPACE kaddressbook/importexportplugin)
target_sources(kaddressbook_importexportgmxplugin PRIVATE
gmximportexportplugin.cpp
gmximportexportplugininterface.cpp
)
ecm_qt_declare_logging_category(kaddressbook_importexport_gmx_SRCS HEADER kaddressbook_importexport_gmx_debug.h IDENTIFIER KADDRESSBOOK_IMPORTEXPORT_GMX_LOG CATEGORY_NAME org.kde.pim.kaddressbook_importexportgmx
ecm_qt_declare_logging_category(kaddressbook_importexportgmxplugin HEADER kaddressbook_importexport_gmx_debug.h IDENTIFIER KADDRESSBOOK_IMPORTEXPORT_GMX_LOG CATEGORY_NAME org.kde.pim.kaddressbook_importexportgmx
DESCRIPTION "kdepim-addons (KAddressbook import export gmx plugin)"
EXPORT KDEPIMADDONS
)
kcoreaddons_add_plugin(kaddressbook_importexportgmxplugin JSON kaddressbook_importexportgmxplugin.json SOURCES
${kaddressbook_importexport_gmx_SRCS} INSTALL_NAMESPACE kaddressbook/importexportplugin)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(kaddressbook_importexportgmxplugin PROPERTIES UNITY_BUILD ON)
endif()
......
set(kaddressbook_importexport_ldap_SRCS
kcoreaddons_add_plugin(kaddressbook_importexportldapplugin JSON kaddressbook_importexportldapplugin.json INSTALL_NAMESPACE kaddressbook/importexportplugin)
target_sources(kaddressbook_importexportldapplugin PRIVATE
ldapimportexportplugin.cpp
ldapimportexportplugininterface.cpp
)
kcoreaddons_add_plugin(kaddressbook_importexportldapplugin JSON kaddressbook_importexportldapplugin.json SOURCES
${kaddressbook_importexport_ldap_SRCS} INSTALL_NAMESPACE kaddressbook/importexportplugin)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(kaddressbook_importexportldapplugin PROPERTIES UNITY_BUILD ON)
endif()
......
set(kaddressbook_importexport_ldif_SRCS
kcoreaddons_add_plugin(kaddressbook_importexportldifplugin JSON kaddressbook_importexportldifplugin.json INSTALL_NAMESPACE kaddressbook/importexportplugin)
target_sources(kaddressbook_importexportldifplugin PRIVATE
ldifimportexportplugin.cpp
ldifimportexportplugininterface.cpp
)
kcoreaddons_add_plugin(kaddressbook_importexportldifplugin JSON kaddressbook_importexportldifplugin.json SOURCES
${kaddressbook_importexport_ldif_SRCS} INSTALL_NAMESPACE kaddressbook/importexportplugin)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(kaddressbook_importexportldifplugin PROPERTIES UNITY_BUILD ON)
endif()
......
set(kaddressbook_importexport_vcard_SRCS
kcoreaddons_add_plugin(kaddressbook_importexportvcardplugin JSON kaddressbook_importexportvcardplugin.json INSTALL_NAMESPACE kaddressbook/importexportplugin)
target_sources(kaddressbook_importexportvcardplugin PRIVATE
vcardimportexportplugin.cpp
vcardimportexportplugininterface.cpp
engine/vcardviewerdialog.cpp
......@@ -6,8 +8,6 @@ set(kaddressbook_importexport_vcard_SRCS
)
kcoreaddons_add_plugin(kaddressbook_importexportvcardplugin JSON kaddressbook_importexportvcardplugin.json SOURCES
${kaddressbook_importexport_vcard_SRCS} INSTALL_NAMESPACE kaddressbook/importexportplugin)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(kaddressbook_importexportvcardplugin PROPERTIES UNITY_BUILD ON)
endif()
......
kcoreaddons_add_plugin(kaddressbook_importexportwindowscontactplugin JSON kaddressbook_importexportwindowscontactplugin.json INSTALL_NAMESPACE kaddressbook/importexportplugin)
set(kaddressbook_importexport_windowscontact_debugfile_SRCS)
ecm_qt_declare_logging_category(kaddressbook_importexport_windowscontact_debugfile_SRCS HEADER importexportwindowscontactplugin_debug.h IDENTIFIER IMPORTEXPORTWINDOWSCONTACTPLUGIN_LOG CATEGORY_NAME org.kde.pim.importexportwindowscontactplugin
ecm_qt_declare_logging_category(kaddressbook_importexportwindowscontactplugin HEADER importexportwindowscontactplugin_debug.h IDENTIFIER IMPORTEXPORTWINDOWSCONTACTPLUGIN_LOG CATEGORY_NAME org.kde.pim.importexportwindowscontactplugin
DESCRIPTION "kdepim-addons (Import/Export Windows Contact plugin)"
EXPORT KDEPIMADDONS
)
set(kaddressbook_importexport_windowscontact_SRCS
target_sources(kaddressbook_importexportwindowscontactplugin PRIVATE
${kaddressbook_importexport_windowscontact_debugfile_SRCS}
windowscontactimportexportplugin.cpp
windowscontactimportexportplugininterface.cpp
importwindowcontact.cpp
)
kcoreaddons_add_plugin(kaddressbook_importexportwindowscontactplugin JSON kaddressbook_importexportwindowscontactplugin.json SOURCES
${kaddressbook_importexport_windowscontact_SRCS} INSTALL_NAMESPACE kaddressbook/importexportplugin)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(kaddressbook_importexportwindowscontactplugin PROPERTIES UNITY_BUILD ON)
endif()
......
set(mailtransport_sendplugin_SRCS
kcoreaddons_add_plugin(mailtransport_sendplugin JSON sendmailtransport.json INSTALL_NAMESPACE mailtransport)
target_sources(mailtransport_sendplugin PRIVATE
sendmailtransportplugin.cpp
sendmailjob.cpp
sendmailconfigwidget.cpp
sendmailconfigdialog.cpp
)
ecm_qt_declare_logging_category(mailtransport_sendplugin_SRCS HEADER sendmailplugin_debug.h IDENTIFIER MAILTRANSPORT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.mailtransport_sendmail
ecm_qt_declare_logging_category(mailtransport_sendplugin HEADER sendmailplugin_debug.h IDENTIFIER MAILTRANSPORT_PLUGIN_LOG CATEGORY_NAME org.kde.pim.mailtransport_sendmail
DESCRIPTION "kdepim-addons (kmailtransport sendmail plugin)"
EXPORT KDEPIMADDONS
)
ki18n_wrap_ui(mailtransport_sendplugin_SRCS
ki18n_wrap_ui(mailtransport_sendplugin
sendmailsettings.ui
)
kcoreaddons_add_plugin(mailtransport_sendplugin JSON sendmailtransport.json SOURCES
${mailtransport_sendplugin_SRCS} INSTALL_NAMESPACE mailtransport)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(mailtransport_sendplugin PROPERTIES UNITY_BUILD ON)
endif()
......
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