aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--tests/CMakeLists.txt6
2 files changed, 6 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c2cf6a6..1fc630f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -80,6 +80,8 @@ if(URLDISPATCHER_FOUND)
add_definitions( -DHAS_URLDISPATCHER )
endif()
+pkg_check_modules(LOMIRI_SOUNDS lomiri-sounds)
+
if(EXISTS "/usr/share/accountsservice/interfaces/com.lomiri.touch.AccountsService.Sound.xml")
set (HAS_LOMIRI_ACCTSERVICE_SOUND ON)
else()
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index cba60fb..082fd9a 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -45,8 +45,10 @@ function(add_test_by_name name)
endfunction()
add_test_by_name(test-datetime)
if(HAS_LOMIRI_ACCTSERVICE_SOUND)
- add_test_by_name(test-sound)
- add_test_by_name(test-notification)
+ if(LOMIRI_SOUNDS_FOUND)
+ add_test_by_name(test-sound)
+ add_test_by_name(test-notification)
+ endif()
add_test_by_name(test-notification-response)
endif()
add_test_by_name(test-actions)