Changeset View
Changeset View
Standalone View
Standalone View
plugins/pausemusic/CMakeLists.txt
1 | find_package(KF5 REQUIRED COMPONENTS KCMUtils) | 1 | find_package(KF5 REQUIRED COMPONENTS KCMUtils) | ||
---|---|---|---|---|---|
2 | find_program(PACTL pactl) | ||||
anthonyfieroni: You can fallback to ALSA if pactl is not found. You can set a preprocesor directive if pactl is… | |||||
2 | 3 | | |||
3 | kdeconnect_add_plugin(kdeconnect_pausemusic JSON kdeconnect_pausemusic.json SOURCES pausemusicplugin.cpp) | 4 | kdeconnect_add_plugin(kdeconnect_pausemusic JSON kdeconnect_pausemusic.json SOURCES pausemusicplugin.cpp) | ||
4 | 5 | | |||
5 | target_link_libraries(kdeconnect_pausemusic | 6 | target_link_libraries(kdeconnect_pausemusic | ||
6 | kdeconnectcore | 7 | kdeconnectcore | ||
7 | Qt5::Core | 8 | Qt5::Core | ||
8 | Qt5::DBus | 9 | Qt5::DBus | ||
9 | ) | 10 | ) | ||
Show All 17 Lines |
You can fallback to ALSA if pactl is not found. You can set a preprocesor directive if pactl is found or not. If not you can use