002848efa8
This is complicated by the Qt 5.6 requirement of SailfishOS, hopefully that didn't get broken by this.
40 lines
1.2 KiB
CMake
40 lines
1.2 KiB
CMake
set(debug_file_SRCS)
|
|
ecm_qt_declare_logging_category(
|
|
debug_file_SRCS HEADER plugin_findthisdevice_debug.h
|
|
IDENTIFIER KDECONNECT_PLUGIN_FINDTHISDEVICE CATEGORY_NAME kdeconnect.plugin.findthisdevice
|
|
DEFAULT_SEVERITY Warning
|
|
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (plugin findthisdevice)")
|
|
|
|
set(kdeconnect_findthisdevice_SRCS
|
|
findthisdeviceplugin.cpp
|
|
${debug_file_SRCS}
|
|
)
|
|
|
|
kdeconnect_add_plugin(kdeconnect_findthisdevice
|
|
SOURCES ${kdeconnect_findthisdevice_SRCS})
|
|
|
|
target_link_libraries(kdeconnect_findthisdevice
|
|
kdeconnectcore
|
|
Qt::Core
|
|
Qt::Multimedia
|
|
Qt::DBus
|
|
)
|
|
|
|
if (NOT WIN32)
|
|
target_link_libraries(kdeconnect_findthisdevice
|
|
KF5::PulseAudioQt
|
|
)
|
|
endif()
|
|
|
|
kcoreaddons_add_plugin(kdeconnect_findthisdevice_config INSTALL_NAMESPACE "kdeconnect/kcms")
|
|
|
|
ki18n_wrap_ui(kdeconnect_findthisdevice_config findthisdevice_config.ui)
|
|
target_sources(kdeconnect_findthisdevice_config PRIVATE findthisdevice_config.cpp ${debug_file_SRCS})
|
|
target_link_libraries(kdeconnect_findthisdevice_config
|
|
kdeconnectpluginkcm
|
|
Qt::Multimedia
|
|
KF5::I18n
|
|
KF5::CoreAddons
|
|
KF5::ConfigWidgets
|
|
KF5::KIOWidgets # KUrlRequester
|
|
)
|