diff --git a/CMakeLists.txt b/CMakeLists.txt index 909eba2c3..19b7e7609 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,7 +48,7 @@ else() endif() find_package(Qca-qt5 ${QCA_MIN_VERSION} REQUIRED) if(NOT WIN32 AND NOT APPLE) - find_package(KF5PulseAudioQt REQUIRED) + find_package(KF5PulseAudioQt) endif() add_definitions(-DQT_NO_URL_CAST_FROM_STRING -DQT_NO_KEYWORDS -DQT_NO_CAST_FROM_ASCII) endif() diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index 095670d42..5149af534 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -7,7 +7,6 @@ add_subdirectory(battery) add_subdirectory(sendnotifications) add_subdirectory(mpriscontrol) add_subdirectory(photo) -add_subdirectory(systemvolume) add_subdirectory(remotecommands) add_subdirectory(mprisremote) add_subdirectory(remotecontrol) @@ -31,12 +30,19 @@ if(NOT SAILFISHOS) endif() if(NOT WIN32 AND NOT APPLE) add_subdirectory(sftp) + endif() + + if(KF5PulseAudioQt_FOUND) add_subdirectory(pausemusic) endif() if(Qt5Multimedia_FOUND AND KF5PulseAudioQt_FOUND) add_subdirectory(findthisdevice) endif() + + if (WIN32 OR APPLE OR KF5PulseAudioQt_FOUND) + add_subdirectory(systemvolume) + endif() endif()