mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-18 19:45:41 -04:00

GSound depends on libcanberra, but it's an indirect dependency, so if we use GSound, we don't need to use libcanberra. GSound is available on Ubuntu 16.04, so we can switch to it on most systems. The libcanberra backend is still supported for now, though it might be removed later. Since GSound doesn't have a GTK+ dependency, we can use it in the GTK4 backend. (libcanberra doesn't support GTK4.)
23 lines
673 B
CMake
23 lines
673 B
CMake
# Find GSound libraries and headers.
|
|
# If found, the following variables will be defined:
|
|
# - GSound_FOUND: System has GSound.
|
|
# - GSound_INCLUDE_DIRS: GSound include directories.
|
|
# - GSound_LIBRARIES: GSound libraries.
|
|
# - GSound_DEFINITIONS: Compiler switches required for using GSound.
|
|
#
|
|
# In addition, a target GSound::gsound will be created with all of
|
|
# these definitions.
|
|
#
|
|
# References:
|
|
# - https://cmake.org/Wiki/CMake:How_To_Find_Libraries
|
|
# - http://francesco-cek.com/cmake-and-gtk-3-the-easy-way/
|
|
#
|
|
|
|
INCLUDE(FindLibraryPkgConfig)
|
|
FIND_LIBRARY_PKG_CONFIG(GSound
|
|
gsound # pkgconfig
|
|
gsound.h # header
|
|
gsound # library
|
|
GSound::gsound # imported target
|
|
)
|