diff options
author | charles kerr <charlesk@canonical.com> | 2016-01-01 16:08:07 -0600 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-08-28 10:17:14 +0200 |
commit | d7d630dd5b250c4db489d797552129093c0c3ab0 (patch) | |
tree | b2b16549b1b9db71bf671cc4e9721ac725b58324 /tests/CMakeLists.txt | |
parent | a8fd3f49bf6509bd4545aec3292d2fc022d847ca (diff) | |
download | ayatana-indicator-power-d7d630dd5b250c4db489d797552129093c0c3ab0.tar.gz ayatana-indicator-power-d7d630dd5b250c4db489d797552129093c0c3ab0.tar.bz2 ayatana-indicator-power-d7d630dd5b250c4db489d797552129093c0c3ab0.zip |
add play-sound tests to test-notify
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 1dc8a8f..96cabb2 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -14,6 +14,14 @@ set_directory_properties (PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES gschemas.compiled) set_source_files_properties (gschemas.compiled GENERATED) +# make a local install of the sounds +set(XDG_DATA_HOME "${CMAKE_CURRENT_BINARY_DIR}/share") +add_definitions(-DXDG_DATA_HOME="${XDG_DATA_HOME}") +file(COPY + DIRECTORY "${CMAKE_SOURCE_DIR}/data/" + DESTINATION "${XDG_DATA_HOME}/${CMAKE_PROJECT_NAME}/sounds" + FILES_MATCHING PATTERN "*.ogg") + # GSettings: # compile the ayatana-indicator-power schema into a gschemas.compiled file in this directory, # and help the tests to find that file by setting -DSCHEMA_DIR |