# - Find sound-theme-freedesktop via XDG_DATA_DIRS # This module defines the following variables: # # SoundThemeFreedesktop_FOUND - true if the sound theme is found # SoundThemeFreedesktop_PATH - path to the index.theme file # # SPDX-FileCopyrightText: 2019 Harald Sitter # # SPDX-License-Identifier: BSD-3-Clause find_file(SoundThemeFreedesktop_PATH "sounds/freedesktop/index.theme" PATHS ENV XDG_DATA_DIRS /usr/local/share/ /usr/share/ NO_DEFAULT_PATH ) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(SoundThemeFreedesktop FOUND_VAR SoundThemeFreedesktop_FOUND REQUIRED_VARS SoundThemeFreedesktop_PATH ) mark_as_advanced(SoundThemeFreedesktop_PATH)