Use target-centric CMake approach for declaring debug category

This makes it easier to read, because we do not have to handle a list of
files that get added to the targets. In other KDE projects, we also
prefer the target centric approach.

In case one wants to reuse the same category in multiple places, it
would be best to create a small static lib. But for now, this is not
needed.
This commit is contained in:
Alexander Lohnau 2023-07-20 16:31:40 +03:00 committed by Albert Vaca Cintora
parent 999f8e00de
commit f740a8bda8
32 changed files with 155 additions and 292 deletions

View file

@ -1,13 +1,5 @@
add_definitions(-DTRANSLATION_DOMAIN=\"kdeconnect-core\") add_definitions(-DTRANSLATION_DOMAIN=\"kdeconnect-core\")
set(debug_file_SRCS)
ecm_qt_declare_logging_category(
debug_file_SRCS HEADER kdeconnect_debug.h
IDENTIFIER KDECONNECT_CORE CATEGORY_NAME kdeconnect.core
DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (core)")
set(KDECONNECT_PRIVATE_DBUS_ADDR unix:tmpdir=/tmp) set(KDECONNECT_PRIVATE_DBUS_ADDR unix:tmpdir=/tmp)
if(WIN32) if(WIN32)
set(KDECONNECT_PRIVATE_DBUS_ADDR tcp:host=localhost,port=0) set(KDECONNECT_PRIVATE_DBUS_ADDR tcp:host=localhost,port=0)
@ -31,7 +23,8 @@ endif()
option(LOOPBACK_ENABLED "Loopback backend enabled" OFF) option(LOOPBACK_ENABLED "Loopback backend enabled" OFF)
set(kdeconnectcore_SRCS add_library(kdeconnectcore)
target_sources(kdeconnectcore PRIVATE
${backends_kdeconnect_SRCS} ${backends_kdeconnect_SRCS}
backends/linkprovider.cpp backends/linkprovider.cpp
@ -52,10 +45,13 @@ set(kdeconnectcore_SRCS
core_debug.cpp core_debug.cpp
notificationserverinfo.cpp notificationserverinfo.cpp
openconfig.cpp openconfig.cpp
${debug_file_SRCS}
) )
ecm_qt_declare_logging_category(kdeconnectcore
HEADER kdeconnect_debug.h
IDENTIFIER KDECONNECT_CORE CATEGORY_NAME kdeconnect.core
DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (core)")
add_library(kdeconnectcore ${kdeconnectcore_SRCS})
target_include_directories(kdeconnectcore PUBLIC ${PROJECT_SOURCE_DIR}) target_include_directories(kdeconnectcore PUBLIC ${PROJECT_SOURCE_DIR})

View file

@ -1,15 +1,11 @@
add_definitions(-DTRANSLATION_DOMAIN="kdeconnect-kded") add_definitions(-DTRANSLATION_DOMAIN="kdeconnect-kded")
set(debug_file_SRCS) add_executable(kdeconnectd kdeconnectd.cpp ${CMAKE_SOURCE_DIR}/icons/custom_icons.qrc)
ecm_qt_declare_logging_category( ecm_qt_declare_logging_category(kdeconnectd
debug_file_SRCS HEADER kdeconnectd_debug.h HEADER kdeconnectd_debug.h
IDENTIFIER KDECONNECT_DAEMON CATEGORY_NAME kdeconnect.daemon IDENTIFIER KDECONNECT_DAEMON CATEGORY_NAME kdeconnect.daemon
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (daemon)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (daemon)")
qt_add_resources(kdeconnect_custom_icons_SRCS ${CMAKE_SOURCE_DIR}/icons/custom_icons.qrc)
add_executable(kdeconnectd kdeconnectd.cpp ${kdeconnect_custom_icons_SRCS} ${debug_file_SRCS})
target_link_libraries(kdeconnectd target_link_libraries(kdeconnectd
kdeconnectcore kdeconnectversion kdeconnectcore kdeconnectversion
KF${QT_MAJOR_VERSION}::KIOWidgets KF${QT_MAJOR_VERSION}::KIOWidgets

View file

@ -1,13 +1,12 @@
add_definitions(-DTRANSLATION_DOMAIN="kdeconnect-fileitemaction") add_definitions(-DTRANSLATION_DOMAIN="kdeconnect-fileitemaction")
set(debug_file_SRCS) add_library(kdeconnectfileitemaction MODULE sendfileitemaction.cpp)
ecm_qt_declare_logging_category(
debug_file_SRCS HEADER kdeconnect_fileitemaction_debug.h ecm_qt_declare_logging_category(kdeconnectfileitemaction
HEADER kdeconnect_fileitemaction_debug.h
IDENTIFIER KDECONNECT_FILEITEMACTION CATEGORY_NAME kdeconnect.fileitemaction IDENTIFIER KDECONNECT_FILEITEMACTION CATEGORY_NAME kdeconnect.fileitemaction
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (fileitemaction)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (fileitemaction)")
add_library(kdeconnectfileitemaction MODULE sendfileitemaction.cpp ${debug_file_SRCS})
target_link_libraries( target_link_libraries(
kdeconnectfileitemaction kdeconnectfileitemaction
KF${QT_MAJOR_VERSION}::KIOWidgets KF${QT_MAJOR_VERSION}::KIOWidgets

View file

@ -1,12 +1,5 @@
add_definitions(-DTRANSLATION_DOMAIN=\"kdeconnect-indicator\") add_definitions(-DTRANSLATION_DOMAIN=\"kdeconnect-indicator\")
set(debug_file_SRCS)
ecm_qt_declare_logging_category(
debug_file_SRCS HEADER indicator_debug.h
IDENTIFIER KDECONNECT_INDICATOR CATEGORY_NAME kdeconnect.indicator
DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (indicator)")
qt_add_resources(kdeconnect_custom_icons_SRCS ${CMAKE_SOURCE_DIR}/icons/custom_icons.qrc) qt_add_resources(kdeconnect_custom_icons_SRCS ${CMAKE_SOURCE_DIR}/icons/custom_icons.qrc)
set(indicator_SRCS set(indicator_SRCS
@ -39,7 +32,14 @@ else ()
list(APPEND indicator_SRCS indicatorhelper.cpp) list(APPEND indicator_SRCS indicatorhelper.cpp)
endif() endif()
add_executable(kdeconnect-indicator ${indicator_SRCS} ${debug_file_SRCS}) add_executable(kdeconnect-indicator ${indicator_SRCS})
ecm_qt_declare_logging_category(kdeconnect-indicator
HEADER indicator_debug.h
IDENTIFIER KDECONNECT_INDICATOR CATEGORY_NAME kdeconnect.indicator
DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (indicator)")
target_include_directories(kdeconnect-indicator PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/systray_actions) target_include_directories(kdeconnect-indicator PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/systray_actions)

View file

@ -1,18 +1,12 @@
add_definitions(-DTRANSLATION_DOMAIN="kdeconnect-kio") add_definitions(-DTRANSLATION_DOMAIN="kdeconnect-kio")
set(debug_file_SRCS) add_library(kio_kdeconnect MODULE kiokdeconnect.cpp)
ecm_qt_declare_logging_category( ecm_qt_declare_logging_category(kio_kdeconnect
debug_file_SRCS HEADER kdeconnectkio_debug.h HEADER kdeconnectkio_debug.h
IDENTIFIER KDECONNECT_KIO CATEGORY_NAME kdeconnect.kio IDENTIFIER KDECONNECT_KIO CATEGORY_NAME kdeconnect.kio
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (kio)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (kio)")
set(kio_kdeconnect_PART_SRCS
kiokdeconnect.cpp
${debug_file_SRCS}
)
add_library(kio_kdeconnect MODULE ${kio_kdeconnect_PART_SRCS})
target_link_libraries(kio_kdeconnect target_link_libraries(kio_kdeconnect
kdeconnectinterfaces kdeconnectinterfaces

View file

@ -1,17 +1,10 @@
set(debug_file_SRCS) kdeconnect_add_plugin(kdeconnect_battery SOURCES batteryplugin.cpp)
ecm_qt_declare_logging_category(
debug_file_SRCS HEADER plugin_battery_debug.h ecm_qt_declare_logging_category(kdeconnect_battery
HEADER plugin_battery_debug.h
IDENTIFIER KDECONNECT_PLUGIN_BATTERY CATEGORY_NAME kdeconnect.plugin.battery IDENTIFIER KDECONNECT_PLUGIN_BATTERY CATEGORY_NAME kdeconnect.plugin.battery
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin battery)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin battery)")
set(kdeconnect_battery_SRCS
batteryplugin.cpp
${debug_file_SRCS}
)
kdeconnect_add_plugin(kdeconnect_battery SOURCES ${kdeconnect_battery_SRCS})
target_link_libraries(kdeconnect_battery target_link_libraries(kdeconnect_battery
kdeconnectcore kdeconnectcore
Qt${QT_MAJOR_VERSION}::DBus Qt${QT_MAJOR_VERSION}::DBus

View file

@ -1,18 +1,10 @@
set(debug_file_SRCS)
ecm_qt_declare_logging_category( ecm_qt_declare_logging_category(
debug_file_SRCS HEADER plugin_clipboard_debug.h debug_file_SRCS HEADER plugin_clipboard_debug.h
IDENTIFIER KDECONNECT_PLUGIN_CLIPBOARD CATEGORY_NAME kdeconnect.plugin.clipboard IDENTIFIER KDECONNECT_PLUGIN_CLIPBOARD CATEGORY_NAME kdeconnect.plugin.clipboard
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin clipboard)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin clipboard)")
set(kdeconnect_clipboard_SRCS kdeconnect_add_plugin(kdeconnect_clipboard SOURCES clipboardplugin.cpp clipboardlistener.cpp ${debug_file_SRCS})
clipboardplugin.cpp
clipboardlistener.cpp
${debug_file_SRCS}
)
kdeconnect_add_plugin(kdeconnect_clipboard SOURCES ${kdeconnect_clipboard_SRCS})
target_link_libraries(kdeconnect_clipboard kdeconnectcore target_link_libraries(kdeconnect_clipboard kdeconnectcore
KF${QT_MAJOR_VERSION}::GuiAddons KF${QT_MAJOR_VERSION}::GuiAddons

View file

@ -1,17 +1,10 @@
set(debug_file_SRCS) kdeconnect_add_plugin(kdeconnect_connectivity_report SOURCES connectivity_reportplugin.cpp)
ecm_qt_declare_logging_category( ecm_qt_declare_logging_category(kdeconnect_connectivity_report
debug_file_SRCS HEADER plugin_connectivity_report_debug.h HEADER plugin_connectivity_report_debug.h
IDENTIFIER KDECONNECT_PLUGIN_CONNECTIVITY_REPORT CATEGORY_NAME kdeconnect.plugin.connectivity_report IDENTIFIER KDECONNECT_PLUGIN_CONNECTIVITY_REPORT CATEGORY_NAME kdeconnect.plugin.connectivity_report
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin connectivity_report)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin connectivity_report)")
set(kdeconnect_connectivity_report_SRCS
connectivity_reportplugin.cpp
${debug_file_SRCS}
)
kdeconnect_add_plugin(kdeconnect_connectivity_report SOURCES ${kdeconnect_connectivity_report_SRCS})
target_link_libraries(kdeconnect_connectivity_report target_link_libraries(kdeconnect_connectivity_report
kdeconnectcore kdeconnectcore
Qt${QT_MAJOR_VERSION}::DBus Qt${QT_MAJOR_VERSION}::DBus

View file

@ -1,17 +1,10 @@
set(debug_file_SRCS) kdeconnect_add_plugin(kdeconnect_contacts SOURCES contactsplugin.cpp)
ecm_qt_declare_logging_category( ecm_qt_declare_logging_category(kdeconnect_contacts
debug_file_SRCS HEADER plugin_contacts_debug.h HEADER plugin_contacts_debug.h
IDENTIFIER KDECONNECT_PLUGIN_CONTACTS CATEGORY_NAME kdeconnect.plugin.contacts IDENTIFIER KDECONNECT_PLUGIN_CONTACTS CATEGORY_NAME kdeconnect.plugin.contacts
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin contacts)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin contacts)")
set(kdeconnect_contacts_SRCS
contactsplugin.cpp
${debug_file_SRCS}
)
kdeconnect_add_plugin(kdeconnect_contacts SOURCES ${kdeconnect_contacts_SRCS})
target_link_libraries(kdeconnect_contacts target_link_libraries(kdeconnect_contacts
kdeconnectcore kdeconnectcore
Qt::DBus Qt::DBus

View file

@ -1,21 +1,19 @@
qt_add_dbus_interface(lockdevice_SRCS org.freedesktop.login1.xml login1dbusinterface) qt_add_dbus_interface(lockdevice_SRCS org.freedesktop.login1.xml login1dbusinterface)
qt_add_dbus_interface(lockdevice_SRCS org.freedesktop.DBus.Properties.xml propertiesdbusinterface) qt_add_dbus_interface(lockdevice_SRCS org.freedesktop.DBus.Properties.xml propertiesdbusinterface)
set(debug_file_SRCS)
ecm_qt_declare_logging_category(
debug_file_SRCS HEADER plugin_lock_debug.h
IDENTIFIER KDECONNECT_PLUGIN_LOCKREMOTE CATEGORY_NAME kdeconnect.plugin.lock
DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin lockremote)")
if (WIN32) if (WIN32)
list(APPEND lockdevice_SRCS lockdeviceplugin-win.cpp) list(APPEND lockdevice_SRCS lockdeviceplugin-win.cpp)
else () else ()
list(APPEND lockdevice_SRCS lockdeviceplugin.cpp) list(APPEND lockdevice_SRCS lockdeviceplugin.cpp)
endif() endif()
kdeconnect_add_plugin(kdeconnect_lockdevice SOURCES ${lockdevice_SRCS} ${debug_file_SRCS}) kdeconnect_add_plugin(kdeconnect_lockdevice SOURCES ${lockdevice_SRCS})
ecm_qt_declare_logging_category(kdeconnect_lockdevice
HEADER plugin_lock_debug.h
IDENTIFIER KDECONNECT_PLUGIN_LOCKREMOTE CATEGORY_NAME kdeconnect.plugin.lock
DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin lockremote)")
target_link_libraries(kdeconnect_lockdevice target_link_libraries(kdeconnect_lockdevice
kdeconnectcore kdeconnectcore
Qt::DBus Qt::DBus

View file

@ -1,16 +1,10 @@
set(debug_file_SRCS) kdeconnect_add_plugin(kdeconnect_mmtelephony SOURCES mmtelephonyplugin.cpp)
ecm_qt_declare_logging_category( ecm_qt_declare_logging_category(kdeconnect_mmtelephony
debug_file_SRCS HEADER plugin_mmtelephony_debug.h HEADER plugin_mmtelephony_debug.h
IDENTIFIER KDECONNECT_PLUGIN_MMTELEPHONY CATEGORY_NAME kdeconnect.plugin.mmtelephony IDENTIFIER KDECONNECT_PLUGIN_MMTELEPHONY CATEGORY_NAME kdeconnect.plugin.mmtelephony
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin mmtelephony)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin mmtelephony)")
set(kdeconnect_mmtelephony_SRCS
mmtelephonyplugin.cpp
${debug_file_SRCS}
)
kdeconnect_add_plugin(kdeconnect_mmtelephony SOURCES ${kdeconnect_mmtelephony_SRCS})
target_link_libraries(kdeconnect_mmtelephony target_link_libraries(kdeconnect_mmtelephony
kdeconnectcore kdeconnectcore

View file

@ -20,15 +20,13 @@ qt_add_dbus_interface(kdeconnect_mpriscontrol_SRCS org.mpris.MediaPlayer2.xml mp
endif() endif()
set(debug_file_SRCS) kdeconnect_add_plugin(kdeconnect_mpriscontrol SOURCES ${kdeconnect_mpriscontrol_SRCS})
ecm_qt_declare_logging_category(
debug_file_SRCS HEADER plugin_mpris_debug.h ecm_qt_declare_logging_category(kdeconnect_mpriscontrol
HEADER plugin_mpris_debug.h
IDENTIFIER KDECONNECT_PLUGIN_MPRIS CATEGORY_NAME kdeconnect.plugin.mpris IDENTIFIER KDECONNECT_PLUGIN_MPRIS CATEGORY_NAME kdeconnect.plugin.mpris
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin mpris)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin mpris)")
kdeconnect_add_plugin(kdeconnect_mpriscontrol SOURCES ${kdeconnect_mpriscontrol_SRCS} ${debug_file_SRCS})
if(WIN32) if(WIN32)
target_link_libraries(kdeconnect_mpriscontrol kdeconnectcore windowsapp) target_link_libraries(kdeconnect_mpriscontrol kdeconnectcore windowsapp)
target_compile_features(kdeconnect_mpriscontrol PUBLIC cxx_std_17) target_compile_features(kdeconnect_mpriscontrol PUBLIC cxx_std_17)

View file

@ -1,12 +1,16 @@
set(debug_file_SRCS) kdeconnect_add_plugin(kdeconnect_mprisremote)
ecm_qt_declare_logging_category(
debug_file_SRCS HEADER plugin_mprisremote_debug.h target_sources(kdeconnect_mprisremote PRIVATE
mprisremoteplugin.cpp
mprisremoteplayer.cpp
mprisremoteplayermediaplayer2.cpp
mprisremoteplayermediaplayer2player.cpp
)
ecm_qt_declare_logging_category(kdeconnect_mprisremote
HEADER plugin_mprisremote_debug.h
IDENTIFIER KDECONNECT_PLUGIN_MPRISREMOTE CATEGORY_NAME kdeconnect.plugin.mprisremote IDENTIFIER KDECONNECT_PLUGIN_MPRISREMOTE CATEGORY_NAME kdeconnect.plugin.mprisremote
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin mprisremote)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin mprisremote)")
kdeconnect_add_plugin(kdeconnect_mprisremote SOURCES mprisremoteplugin.cpp mprisremoteplayer.cpp mprisremoteplayermediaplayer2.cpp mprisremoteplayermediaplayer2player.cpp ${debug_file_SRCS})
target_link_libraries(kdeconnect_mprisremote target_link_libraries(kdeconnect_mprisremote
kdeconnectcore kdeconnectcore
Qt::DBus Qt::DBus

View file

@ -1,21 +1,12 @@
set(debug_file_SRCS) kdeconnect_add_plugin(kdeconnect_notifications SOURCES sendreplydialog.cpp notificationsplugin.cpp notification.cpp)
ecm_qt_declare_logging_category(
debug_file_SRCS HEADER plugin_notification_debug.h ki18n_wrap_ui(kdeconnect_notifications sendreplydialog.ui)
ecm_qt_declare_logging_category(kdeconnect_notifications
HEADER plugin_notification_debug.h
IDENTIFIER KDECONNECT_PLUGIN_NOTIFICATION CATEGORY_NAME kdeconnect.plugin.notification IDENTIFIER KDECONNECT_PLUGIN_NOTIFICATION CATEGORY_NAME kdeconnect.plugin.notification
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin notification)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin notification)")
set(kdeconnect_notifications_SRCS
notification.cpp
notificationsplugin.cpp
sendreplydialog.cpp
${debug_file_SRCS}
)
ki18n_wrap_ui(kdeconnect_notifications_SRCS sendreplydialog.ui)
kdeconnect_add_plugin(kdeconnect_notifications SOURCES ${kdeconnect_notifications_SRCS})
target_link_libraries(kdeconnect_notifications target_link_libraries(kdeconnect_notifications
kdeconnectcore kdeconnectcore
Qt::DBus Qt::DBus

View file

@ -8,17 +8,15 @@ else()
) )
endif() endif()
set(debug_file_SRCS) qt_add_dbus_interface(kdeconnect_pausemusic_SRCS org.mpris.MediaPlayer2.Player.xml mprisplayer)
ecm_qt_declare_logging_category(
debug_file_SRCS HEADER plugin_pausemusic_debug.h kdeconnect_add_plugin(kdeconnect_pausemusic SOURCES ${kdeconnect_pausemusic_SRCS})
ecm_qt_declare_logging_category(kdeconnect_pausemusic
HEADER plugin_pausemusic_debug.h
IDENTIFIER KDECONNECT_PLUGIN_PAUSEMUSIC CATEGORY_NAME kdeconnect.plugin.pausemusic IDENTIFIER KDECONNECT_PLUGIN_PAUSEMUSIC CATEGORY_NAME kdeconnect.plugin.pausemusic
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin pausemusic)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin pausemusic)")
qt_add_dbus_interface(kdeconnect_pausemusic_SRCS org.mpris.MediaPlayer2.Player.xml mprisplayer)
kdeconnect_add_plugin(kdeconnect_pausemusic SOURCES ${kdeconnect_pausemusic_SRCS} ${debug_file_SRCS})
target_link_libraries(kdeconnect_pausemusic target_link_libraries(kdeconnect_pausemusic
kdeconnectcore kdeconnectcore
Qt::Core Qt::Core

View file

@ -1,17 +1,10 @@
set(debug_file_SRCS) kdeconnect_add_plugin(kdeconnect_photo SOURCES photoplugin.cpp)
ecm_qt_declare_logging_category(
debug_file_SRCS HEADER plugin_photo_debug.h ecm_qt_declare_logging_category(kdeconnect_photo
HEADER plugin_photo_debug.h
IDENTIFIER KDECONNECT_PLUGIN_PHOTO CATEGORY_NAME kdeconnect.plugin.photo IDENTIFIER KDECONNECT_PLUGIN_PHOTO CATEGORY_NAME kdeconnect.plugin.photo
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin photo)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin photo)")
set(kdeconnect_photo_SRCS
photoplugin.cpp
${debug_file_SRCS}
)
kdeconnect_add_plugin(kdeconnect_photo SOURCES ${kdeconnect_photo_SRCS})
target_link_libraries(kdeconnect_photo target_link_libraries(kdeconnect_photo
kdeconnectcore kdeconnectcore
Qt::DBus Qt::DBus

View file

@ -1,17 +1,11 @@
set(debug_file_SRCS) kdeconnect_add_plugin(kdeconnect_ping SOURCES pingplugin.cpp)
ecm_qt_declare_logging_category(
debug_file_SRCS HEADER plugin_ping_debug.h ecm_qt_declare_logging_category(kdeconnect_ping
HEADER plugin_ping_debug.h
IDENTIFIER KDECONNECT_PLUGIN_PING CATEGORY_NAME kdeconnect.plugin.ping IDENTIFIER KDECONNECT_PLUGIN_PING CATEGORY_NAME kdeconnect.plugin.ping
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin ping)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin ping)")
set(kdeconnect_ping_SRCS
pingplugin.cpp
${debug_file_SRCS}
)
kdeconnect_add_plugin(kdeconnect_ping SOURCES ${kdeconnect_ping_SRCS})
target_link_libraries(kdeconnect_ping target_link_libraries(kdeconnect_ping
kdeconnectcore kdeconnectcore
Qt${QT_MAJOR_VERSION}::DBus Qt${QT_MAJOR_VERSION}::DBus

View file

@ -1,13 +1,12 @@
qt_add_resources(presenter_SRCS assets.qrc) qt_add_resources(presenter_SRCS assets.qrc)
set(debug_file_SRCS) kdeconnect_add_plugin(kdeconnect_presenter SOURCES presenterplugin.cpp ${presenter_SRCS})
ecm_qt_declare_logging_category( ecm_qt_declare_logging_category(kdeconnect_presenter
debug_file_SRCS HEADER plugin_presenter_debug.h HEADER plugin_presenter_debug.h
IDENTIFIER KDECONNECT_PLUGIN_PRESENT CATEGORY_NAME kdeconnect.plugin.presenter IDENTIFIER KDECONNECT_PLUGIN_PRESENT CATEGORY_NAME kdeconnect.plugin.presenter
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin presenter)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin presenter)")
kdeconnect_add_plugin(kdeconnect_presenter SOURCES presenterplugin.cpp ${presenter_SRCS} ${debug_file_SRCS})
target_link_libraries(kdeconnect_presenter target_link_libraries(kdeconnect_presenter
kdeconnectcore kdeconnectcore
Qt${QT_MAJOR_VERSION}::DBus Qt${QT_MAJOR_VERSION}::DBus

View file

@ -1,16 +1,11 @@
set(debug_file_SRCS) kdeconnect_add_plugin(kdeconnect_remotecommands SOURCES remotecommandsplugin.cpp)
ecm_qt_declare_logging_category(
debug_file_SRCS HEADER plugin_remotecommands_debug.h ecm_qt_declare_logging_category(kdeconnect_remotecommands
HEADER plugin_remotecommands_debug.h
IDENTIFIER KDECONNECT_PLUGIN_REMOTECOMMANDS CATEGORY_NAME kdeconnect.plugin.remotecommands IDENTIFIER KDECONNECT_PLUGIN_REMOTECOMMANDS CATEGORY_NAME kdeconnect.plugin.remotecommands
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin remotecommands)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin remotecommands)")
kdeconnect_add_plugin(kdeconnect_remotecommands
SOURCES remotecommandsplugin.cpp ${debug_file_SRCS}
)
target_link_libraries(kdeconnect_remotecommands target_link_libraries(kdeconnect_remotecommands
kdeconnectcore kdeconnectcore
Qt${QT_MAJOR_VERSION}::DBus Qt${QT_MAJOR_VERSION}::DBus
) )

View file

@ -1,12 +1,10 @@
set(debug_file_SRCS) kdeconnect_add_plugin(kdeconnect_remotecontrol SOURCES remotecontrolplugin.cpp)
ecm_qt_declare_logging_category(
debug_file_SRCS HEADER plugin_remotecontrol_debug.h ecm_qt_declare_logging_category(kdeconnect_remotecontrol
HEADER plugin_remotecontrol_debug.h
IDENTIFIER KDECONNECT_PLUGIN_REMOTECONTROL CATEGORY_NAME kdeconnect.plugin.remotecontrol IDENTIFIER KDECONNECT_PLUGIN_REMOTECONTROL CATEGORY_NAME kdeconnect.plugin.remotecontrol
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin remotecontrol)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin remotecontrol)")
kdeconnect_add_plugin(kdeconnect_remotecontrol SOURCES remotecontrolplugin.cpp ${debug_file_SRCS})
target_link_libraries(kdeconnect_remotecontrol target_link_libraries(kdeconnect_remotecontrol
kdeconnectcore kdeconnectcore
Qt${QT_MAJOR_VERSION}::DBus Qt${QT_MAJOR_VERSION}::DBus

View file

@ -1,13 +1,11 @@
set(debug_file_SRCS) kdeconnect_add_plugin(kdeconnect_remotekeyboard SOURCES remotekeyboardplugin.cpp)
ecm_qt_declare_logging_category(
debug_file_SRCS HEADER plugin_remotekeyboard_debug.h ecm_qt_declare_logging_category(kdeconnect_remotekeyboard
HEADER plugin_remotekeyboard_debug.h
IDENTIFIER KDECONNECT_PLUGIN_REMOTEKEYBOARD CATEGORY_NAME kdeconnect.plugin.remotekeyboard IDENTIFIER KDECONNECT_PLUGIN_REMOTEKEYBOARD CATEGORY_NAME kdeconnect.plugin.remotekeyboard
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin remotekeyboard)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin remotekeyboard)")
kdeconnect_add_plugin(kdeconnect_remotekeyboard
SOURCES remotekeyboardplugin.cpp ${debug_file_SRCS})
target_link_libraries(kdeconnect_remotekeyboard target_link_libraries(kdeconnect_remotekeyboard
kdeconnectcore kdeconnectcore
Qt::DBus Qt::DBus

View file

@ -1,17 +1,10 @@
set(debug_file_SRCS) kdeconnect_add_plugin(kdeconnect_remotesystemvolume SOURCES remotesystemvolumeplugin.cpp)
ecm_qt_declare_logging_category(
debug_file_SRCS HEADER plugin_remotesystemvolume_debug.h ecm_qt_declare_logging_category(kdeconnect_remotesystemvolume
HEADER plugin_remotesystemvolume_debug.h
IDENTIFIER KDECONNECT_PLUGIN_REMOTESYSTEMVOLUME CATEGORY_NAME kdeconnect.plugin.remotesystemvolume IDENTIFIER KDECONNECT_PLUGIN_REMOTESYSTEMVOLUME CATEGORY_NAME kdeconnect.plugin.remotesystemvolume
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin remotesystemvolume)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin remotesystemvolume)")
set(kdeconnect_remotesystemvolume_SRCS
remotesystemvolumeplugin.cpp
${debug_file_SRCS}
)
kdeconnect_add_plugin(kdeconnect_remotesystemvolume SOURCES ${kdeconnect_remotesystemvolume_SRCS})
target_link_libraries(kdeconnect_remotesystemvolume target_link_libraries(kdeconnect_remotesystemvolume
kdeconnectcore kdeconnectcore
Qt${QT_MAJOR_VERSION}::DBus Qt${QT_MAJOR_VERSION}::DBus

View file

@ -1,17 +1,10 @@
set(debug_file_SRCS) kdeconnect_add_plugin(kdeconnect_runcommand SOURCES runcommandplugin.cpp)
ecm_qt_declare_logging_category(
debug_file_SRCS HEADER plugin_runcommand_debug.h ecm_qt_declare_logging_category(kdeconnect_runcommand
HEADER plugin_runcommand_debug.h
IDENTIFIER KDECONNECT_PLUGIN_RUNCOMMAND CATEGORY_NAME kdeconnect.plugin.runcommand IDENTIFIER KDECONNECT_PLUGIN_RUNCOMMAND CATEGORY_NAME kdeconnect.plugin.runcommand
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin runcommand)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin runcommand)")
set(kdeconnect_runcommand_SRCS
runcommandplugin.cpp
${debug_file_SRCS}
)
kdeconnect_add_plugin(kdeconnect_runcommand SOURCES ${kdeconnect_runcommand_SRCS})
target_link_libraries(kdeconnect_runcommand target_link_libraries(kdeconnect_runcommand
kdeconnectcore kdeconnectcore
Qt${QT_MAJOR_VERSION}::DBus Qt${QT_MAJOR_VERSION}::DBus

View file

@ -13,15 +13,14 @@ else()
qt_add_dbus_interface(kdeconnect_screensaver_inhibit_SRCS org.freedesktop.ScreenSaver.xml screensaverinterface) qt_add_dbus_interface(kdeconnect_screensaver_inhibit_SRCS org.freedesktop.ScreenSaver.xml screensaverinterface)
endif() endif()
set(debug_file_SRCS)
ecm_qt_declare_logging_category( kdeconnect_add_plugin(kdeconnect_screensaver_inhibit SOURCES ${kdeconnect_screensaver_inhibit_SRCS})
debug_file_SRCS HEADER kdeconnect_screensaverinhibit_debug.h
ecm_qt_declare_logging_category(kdeconnect_screensaver_inhibit
HEADER kdeconnect_screensaverinhibit_debug.h
IDENTIFIER KDECONNECT_PLUGIN_SCREENSAVERINHIBIT CATEGORY_NAME kdeconnect.plugin.screensaverinhibit IDENTIFIER KDECONNECT_PLUGIN_SCREENSAVERINHIBIT CATEGORY_NAME kdeconnect.plugin.screensaverinhibit
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin screensaverinhibit)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin screensaverinhibit)")
kdeconnect_add_plugin(kdeconnect_screensaver_inhibit SOURCES ${kdeconnect_screensaver_inhibit_SRCS} ${debug_file_SRCS})
target_link_libraries(kdeconnect_screensaver_inhibit kdeconnectcore) target_link_libraries(kdeconnect_screensaver_inhibit kdeconnectcore)
if(NOT APPLE AND NOT WIN32) if(NOT APPLE AND NOT WIN32)
target_link_libraries(kdeconnect_screensaver_inhibit target_link_libraries(kdeconnect_screensaver_inhibit

View file

@ -1,20 +1,16 @@
set(debug_file_SRCS) kdeconnect_add_plugin(kdeconnect_sendnotifications)
ecm_qt_declare_logging_category(
debug_file_SRCS HEADER plugin_sendnotification_debug.h
IDENTIFIER KDECONNECT_PLUGIN_SENDNOTIFICATION CATEGORY_NAME kdeconnect.plugin.sendnotification
DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin sendnotification)")
set(kdeconnect_sendnotifications_SRCS target_sources(kdeconnect_sendnotifications PRIVATE
sendnotificationsplugin.cpp sendnotificationsplugin.cpp
notificationslistener.cpp notificationslistener.cpp
notifyingapplication.cpp notifyingapplication.cpp
${debug_file_SRCS}
) )
ecm_qt_declare_logging_category(kdeconnect_sendnotifications
kdeconnect_add_plugin(kdeconnect_sendnotifications SOURCES ${kdeconnect_sendnotifications_SRCS}) HEADER plugin_sendnotification_debug.h
IDENTIFIER KDECONNECT_PLUGIN_SENDNOTIFICATION CATEGORY_NAME kdeconnect.plugin.sendnotification
DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin sendnotification)")
target_link_libraries(kdeconnect_sendnotifications target_link_libraries(kdeconnect_sendnotifications
kdeconnectcore kdeconnectcore
Qt::DBus Qt::DBus
@ -25,9 +21,7 @@ target_link_libraries(kdeconnect_sendnotifications
PkgConfig::GIO PkgConfig::GIO
) )
#######################################
# Config # Config
kcoreaddons_add_plugin(kdeconnect_sendnotifications_config INSTALL_NAMESPACE "kdeconnect/kcms") kcoreaddons_add_plugin(kdeconnect_sendnotifications_config INSTALL_NAMESPACE "kdeconnect/kcms")
ki18n_wrap_ui(kdeconnect_sendnotifications_config sendnotifications_config.ui) ki18n_wrap_ui(kdeconnect_sendnotifications_config sendnotifications_config.ui)
@ -37,7 +31,7 @@ target_sources(kdeconnect_sendnotifications_config PRIVATE
notifyingapplicationmodel.cpp notifyingapplicationmodel.cpp
) )
target_link_libraries( kdeconnect_sendnotifications_config target_link_libraries(kdeconnect_sendnotifications_config
kdeconnectcore kdeconnectcore
kdeconnectpluginkcm kdeconnectpluginkcm
KF${QT_MAJOR_VERSION}::I18n KF${QT_MAJOR_VERSION}::I18n

View file

@ -14,15 +14,13 @@ else()
) )
endif() endif()
set(debug_file_SRCS) kdeconnect_add_plugin(kdeconnect_sftp SOURCES ${kdeconnect_sftp_SRCS})
ecm_qt_declare_logging_category( ecm_qt_declare_logging_category(kdeconnect_sftp
debug_file_SRCS HEADER plugin_sftp_debug.h HEADER plugin_sftp_debug.h
IDENTIFIER KDECONNECT_PLUGIN_SFTP CATEGORY_NAME kdeconnect.plugin.sftp IDENTIFIER KDECONNECT_PLUGIN_SFTP CATEGORY_NAME kdeconnect.plugin.sftp
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin sftp)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin sftp)")
kdeconnect_add_plugin(kdeconnect_sftp SOURCES ${kdeconnect_sftp_SRCS} ${debug_file_SRCS})
target_link_libraries(kdeconnect_sftp target_link_libraries(kdeconnect_sftp
kdeconnectcore kdeconnectcore
Qt::DBus Qt::DBus

View file

@ -1,5 +1,6 @@
set(debug_file_SRCS) kdeconnect_add_plugin(kdeconnect_share SOURCES shareplugin.cpp)
ecm_qt_declare_logging_category(debug_file_SRCS
ecm_qt_declare_logging_category(kdeconnect_share
HEADER plugin_share_debug.h HEADER plugin_share_debug.h
IDENTIFIER KDECONNECT_PLUGIN_SHARE IDENTIFIER KDECONNECT_PLUGIN_SHARE
CATEGORY_NAME kdeconnect.plugin.share CATEGORY_NAME kdeconnect.plugin.share
@ -7,14 +8,6 @@ ecm_qt_declare_logging_category(debug_file_SRCS
EXPORT kdeconnect-kde EXPORT kdeconnect-kde
DESCRIPTION "kdeconnect (plugin share)" DESCRIPTION "kdeconnect (plugin share)"
) )
set(kdeconnect_share_SRCS
shareplugin.cpp
${debug_file_SRCS}
)
kdeconnect_add_plugin(kdeconnect_share SOURCES ${kdeconnect_share_SRCS})
target_link_libraries(kdeconnect_share target_link_libraries(kdeconnect_share
kdeconnectcore kdeconnectcore
Qt::DBus Qt::DBus

View file

@ -1,25 +1,22 @@
set(debug_file_SRCS) kdeconnect_add_plugin(kdeconnect_sms SOURCES ${kdeconnect_sms_SRCS})
ecm_qt_declare_logging_category(
debug_file_SRCS HEADER plugin_sms_debug.h target_sources(kdeconnect_sms PRIVATE
smsplugin.cpp
conversationsdbusinterface.cpp
requestconversationworker.cpp
)
ecm_qt_declare_logging_category(kdeconnect_sms
HEADER plugin_sms_debug.h
IDENTIFIER KDECONNECT_PLUGIN_SMS CATEGORY_NAME kdeconnect.plugin.sms IDENTIFIER KDECONNECT_PLUGIN_SMS CATEGORY_NAME kdeconnect.plugin.sms
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin sms)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin sms)")
ecm_qt_declare_logging_category( ecm_qt_declare_logging_category(kdeconnect_sms
debug_file_SRCS HEADER kdeconnect_conversations_debug.h HEADER kdeconnect_conversations_debug.h
IDENTIFIER KDECONNECT_CONVERSATIONS CATEGORY_NAME kdeconnect.conversations IDENTIFIER KDECONNECT_CONVERSATIONS CATEGORY_NAME kdeconnect.conversations
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (conversations)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (conversations)")
set(kdeconnect_sms_SRCS
smsplugin.cpp
conversationsdbusinterface.cpp
requestconversationworker.cpp
${debug_file_SRCS}
)
kdeconnect_add_plugin(kdeconnect_sms SOURCES ${kdeconnect_sms_SRCS})
target_link_libraries(kdeconnect_sms target_link_libraries(kdeconnect_sms
kdeconnectcore kdeconnectcore
kdeconnectinterfaces kdeconnectinterfaces

View file

@ -12,14 +12,13 @@ else()
) )
endif() endif()
set(debug_file_SRCS) kdeconnect_add_plugin(kdeconnect_systemvolume SOURCES ${kdeconnect_systemvolume_SRCS})
ecm_qt_declare_logging_category(
debug_file_SRCS HEADER plugin_systemvolume_debug.h ecm_qt_declare_logging_category(kdeconnect_systemvolume
HEADER plugin_systemvolume_debug.h
IDENTIFIER KDECONNECT_PLUGIN_SYSTEMVOLUME CATEGORY_NAME kdeconnect.plugin.systemvolume IDENTIFIER KDECONNECT_PLUGIN_SYSTEMVOLUME CATEGORY_NAME kdeconnect.plugin.systemvolume
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin systemvolume)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin systemvolume)")
kdeconnect_add_plugin(kdeconnect_systemvolume SOURCES ${kdeconnect_systemvolume_SRCS} ${debug_file_SRCS})
if(WIN32) if(WIN32)
target_link_libraries(kdeconnect_systemvolume target_link_libraries(kdeconnect_systemvolume
kdeconnectcore kdeconnectcore

View file

@ -1,17 +1,10 @@
set(debug_file_SRCS) kdeconnect_add_plugin(kdeconnect_telephony SOURCES telephonyplugin.cpp)
ecm_qt_declare_logging_category(
debug_file_SRCS HEADER plugin_telephony_debug.h ecm_qt_declare_logging_category(kdeconnect_telephony
HEADER plugin_telephony_debug.h
IDENTIFIER KDECONNECT_PLUGIN_TELEPHONY CATEGORY_NAME kdeconnect.plugin.telephony IDENTIFIER KDECONNECT_PLUGIN_TELEPHONY CATEGORY_NAME kdeconnect.plugin.telephony
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin telephony)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin telephony)")
set(kdeconnect_telephony_SRCS
telephonyplugin.cpp
${debug_file_SRCS}
)
kdeconnect_add_plugin(kdeconnect_telephony SOURCES ${kdeconnect_telephony_SRCS})
target_link_libraries(kdeconnect_telephony target_link_libraries(kdeconnect_telephony
kdeconnectcore kdeconnectcore
KF${QT_MAJOR_VERSION}::I18n KF${QT_MAJOR_VERSION}::I18n

View file

@ -1,18 +1,10 @@
set(debug_file_SRCS) kdeconnect_add_plugin(kdeconnect_virtualmonitor SOURCES virtualmonitorplugin.cpp)
ecm_qt_declare_logging_category( ecm_qt_declare_logging_category(kdeconnect_virtualmonitor
debug_file_SRCS HEADER plugin_virtualmonitor_debug.h HEADER plugin_virtualmonitor_debug.h
IDENTIFIER KDECONNECT_PLUGIN_VIRTUALMONITOR CATEGORY_NAME kdeconnect.plugin.virtualmonitor IDENTIFIER KDECONNECT_PLUGIN_VIRTUALMONITOR CATEGORY_NAME kdeconnect.plugin.virtualmonitor
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin virtualmonitor)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin virtualmonitor)")
set(kdeconnect_virtualmonitor_SRCS
virtualmonitorplugin.cpp
${debug_file_SRCS}
)
kdeconnect_add_plugin(kdeconnect_virtualmonitor
SOURCES ${kdeconnect_virtualmonitor_SRCS})
target_link_libraries(kdeconnect_virtualmonitor target_link_libraries(kdeconnect_virtualmonitor
kdeconnectcore kdeconnectcore
Qt::Core Qt::Core

View file

@ -1,28 +1,24 @@
set(smshelper_debug_file_SRCS) add_library(kdeconnectsmshelper STATIC
ecm_qt_declare_logging_category( smshelper.cpp
smshelper_debug_file_SRCS HEADER smshelper_debug.h gsmasciimap.cpp
)
ecm_qt_declare_logging_category(kdeconnectsmshelper
HEADER smshelper_debug.h
IDENTIFIER KDECONNECT_SMS_SMSHELPER CATEGORY_NAME kdeconnect.sms.smshelper IDENTIFIER KDECONNECT_SMS_SMSHELPER CATEGORY_NAME kdeconnect.sms.smshelper
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (smshelper)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (smshelper)")
ecm_qt_declare_logging_category(kdeconnectsmshelper
set(sms_debug_files_SRCS) HEADER sms_conversation_debug.h
ecm_qt_declare_logging_category(
sms_debug_files_SRCS HEADER sms_conversation_debug.h
IDENTIFIER KDECONNECT_SMS_CONVERSATION_MODEL CATEGORY_NAME kdeconnect.sms.conversation IDENTIFIER KDECONNECT_SMS_CONVERSATION_MODEL CATEGORY_NAME kdeconnect.sms.conversation
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (sms conversation model)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (sms conversation model)")
ecm_qt_declare_logging_category(kdeconnectsmshelper
ecm_qt_declare_logging_category( HEADER sms_conversations_list_debug.h
sms_debug_files_SRCS HEADER sms_conversations_list_debug.h
IDENTIFIER KDECONNECT_SMS_CONVERSATIONS_LIST_MODEL CATEGORY_NAME kdeconnect.sms.conversations_list IDENTIFIER KDECONNECT_SMS_CONVERSATIONS_LIST_MODEL CATEGORY_NAME kdeconnect.sms.conversations_list
DEFAULT_SEVERITY Warning DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (sms conversations list)") EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (sms conversations list)")
add_library(kdeconnectsmshelper STATIC
smshelper.cpp
gsmasciimap.cpp
${smshelper_debug_file_SRCS}
)
target_include_directories(kdeconnectsmshelper PUBLIC ${CMAKE_SOURCE_DIR}) target_include_directories(kdeconnectsmshelper PUBLIC ${CMAKE_SOURCE_DIR})
@ -46,7 +42,7 @@ add_executable(kdeconnect-sms
thumbnailsprovider.cpp thumbnailsprovider.cpp
attachmentinfo.cpp attachmentinfo.cpp
${kdeconnect_custom_icons_SRCS} ${kdeconnect_custom_icons_SRCS}
${sms_debug_files_SRCS}) )
target_link_libraries(kdeconnect-sms target_link_libraries(kdeconnect-sms
kdeconnectsmshelper kdeconnectsmshelper