Changeset View
Changeset View
Standalone View
Standalone View
plugins/mpriscontrol/CMakeLists.txt
1 | if(WIN32) | ||||
---|---|---|---|---|---|
2 | set(kdeconnect_mpriscontrol_SRCS | ||||
3 | mpriscontrolplugin-win.cpp | ||||
4 | ) | ||||
5 | else() | ||||
1 | set(kdeconnect_mpriscontrol_SRCS | 6 | set(kdeconnect_mpriscontrol_SRCS | ||
2 | mpriscontrolplugin.cpp | 7 | mpriscontrolplugin.cpp | ||
3 | ) | 8 | ) | ||
4 | 9 | | |||
5 | qt5_add_dbus_interface( | 10 | qt5_add_dbus_interface( | ||
6 | kdeconnect_mpriscontrol_SRCS | 11 | kdeconnect_mpriscontrol_SRCS | ||
7 | mprisdbusinterface.xml | 12 | mprisdbusinterface.xml | ||
8 | mprisdbusinterface | 13 | mprisdbusinterface | ||
9 | ) | 14 | ) | ||
10 | 15 | | |||
11 | qt5_add_dbus_interface( | 16 | qt5_add_dbus_interface( | ||
12 | kdeconnect_mpriscontrol_SRCS | 17 | kdeconnect_mpriscontrol_SRCS | ||
13 | propertiesInterface.xml | 18 | propertiesInterface.xml | ||
14 | propertiesdbusinterface | 19 | propertiesdbusinterface | ||
15 | ) | 20 | ) | ||
21 | endif() | ||||
16 | 22 | | |||
17 | kdeconnect_add_plugin(kdeconnect_mpriscontrol JSON kdeconnect_mpriscontrol.json SOURCES ${kdeconnect_mpriscontrol_SRCS}) | 23 | kdeconnect_add_plugin(kdeconnect_mpriscontrol JSON kdeconnect_mpriscontrol.json SOURCES ${kdeconnect_mpriscontrol_SRCS}) | ||
18 | 24 | | |||
25 | if(WIN32) | ||||
26 | target_link_libraries(kdeconnect_mpriscontrol kdeconnectcore) | ||||
27 | else() | ||||
19 | target_link_libraries(kdeconnect_mpriscontrol Qt5::DBus kdeconnectcore) | 28 | target_link_libraries(kdeconnect_mpriscontrol Qt5::DBus kdeconnectcore) | ||
29 | endif() | ||||
30 | No newline at end of file |