kdeconnect-kde/plugins/mpriscontrol/CMakeLists.txt
Albert Vaca Cintora 5a27c93538 Windows MPRIS: Add a "default player" entry
This sends generic multimedia keyboard events, since the implementation
using GlobalSystemMediaTransportControlsSessionManager had some problems:
the SessionsChanged event doesn't work on recent Windows versions,
plus many players don't implement this API (eg: VLC, Windows Media).
2023-08-28 17:31:26 +00:00

17 lines
488 B
CMake

if(WIN32)
set(kdeconnect_mpriscontrol_SRCS
mpriscontrolplugin-win.cpp
)
else()
set(kdeconnect_mpriscontrol_SRCS
mpriscontrolplugin.cpp
)
endif()
kdeconnect_add_plugin(kdeconnect_mpriscontrol SOURCES ${kdeconnect_mpriscontrol_SRCS})
if(WIN32)
target_link_libraries(kdeconnect_mpriscontrol kdeconnectcore windowsapp KF${QT_MAJOR_VERSION}::I18n)
else()
target_link_libraries(kdeconnect_mpriscontrol Qt::DBus kdeconnectcore kdeconnectinterfaces)
endif()