aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 96cabb2..566132e 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -14,13 +14,10 @@ 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")
+# make a XDG_DATA_HOME for sounds/
+set(XDG_DATA_HOME "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}")
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")
+file(COPY "${CMAKE_SOURCE_DIR}/data/sounds" DESTINATION "${XDG_DATA_HOME}/${CMAKE_PROJECT_NAME}")
# GSettings:
# compile the ayatana-indicator-power schema into a gschemas.compiled file in this directory,