From 7d1e8280aa4fa91ddcedf32549dac08b13e1fc76 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Tue, 3 Feb 2015 09:40:08 +0100 Subject: [PATCH] add missing file --- .../secondary_backends/sound/CMakeLists.txt | 18 ++++++++++++++++++ .../secondary_backends/sound/plugin.json | 1 + 2 files changed, 19 insertions(+) create mode 100644 src/plugins/secondary_backends/sound/CMakeLists.txt create mode 100644 src/plugins/secondary_backends/sound/plugin.json diff --git a/src/plugins/secondary_backends/sound/CMakeLists.txt b/src/plugins/secondary_backends/sound/CMakeLists.txt new file mode 100644 index 0000000..f3088d6 --- /dev/null +++ b/src/plugins/secondary_backends/sound/CMakeLists.txt @@ -0,0 +1,18 @@ +find_package(Qt5Multimedia QUIET) +set_package_properties(Qt5Multimedia PROPERTIES + PURPOSE "Support for sound Notifications" + TYPE OPTIONAL) +if(Qt5Multimedia_FOUND) + qt5_wrap_ui(UI soundsettings.ui) + + set( SOUND_SRC + sound.cpp + soundsettings.cpp + ${UI} + ) + + add_library(libsnore_secondary_backend_sound MODULE ${SOUND_SRC} ) + target_link_libraries(libsnore_secondary_backend_sound Snore::Libsnore Qt5::Multimedia) + + install(TARGETS libsnore_secondary_backend_sound ${SNORE_PLUGIN_INSTALL_PATH}) +endif() diff --git a/src/plugins/secondary_backends/sound/plugin.json b/src/plugins/secondary_backends/sound/plugin.json new file mode 100644 index 0000000..5a9afdb --- /dev/null +++ b/src/plugins/secondary_backends/sound/plugin.json @@ -0,0 +1 @@ +{ "type" : "secondary_backend", "name" : "Sound" } \ No newline at end of file