You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
1.3 KiB

add_definitions("-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII")
# clear setting pulled in from finding KF5::KDELibs4Support before resetting
remove_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0)
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
set(kded_statusnotifierwatcher_SRCS statusnotifierwatcher.cpp )
qt5_add_dbus_adaptor(kded_statusnotifierwatcher_SRCS ${KNOTIFICATIONS_DBUS_INTERFACES_DIR}/kf5_org.kde.StatusNotifierWatcher.xml
statusnotifierwatcher.h StatusNotifierWatcher)
set(statusnotifieritem_xml ${KNOTIFICATIONS_DBUS_INTERFACES_DIR}/kf5_org.kde.StatusNotifierItem.xml)
set_source_files_properties(${statusnotifieritem_xml} PROPERTIES
NO_NAMESPACE false
INCLUDE "systemtraytypedefs.h"
CLASSNAME OrgKdeStatusNotifierItemInterface
)
qt5_add_dbus_interface(kded_statusnotifierwatcher_SRCS ${statusnotifieritem_xml} statusnotifieritem_interface)
add_library(statusnotifierwatcher MODULE ${kded_statusnotifierwatcher_SRCS})
kcoreaddons_desktop_to_json(statusnotifierwatcher statusnotifierwatcher.desktop)
target_link_libraries(statusnotifierwatcher Qt5::DBus KF5::DBusAddons KF5::CoreAddons)
install(TARGETS statusnotifierwatcher DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/kded)