mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-18 19:45:41 -04:00
23 lines
804 B
CMake
23 lines
804 B
CMake
# Find LibCanberra GTK+ 2.x libraries and headers.
|
|
# If found, the following variables will be defined:
|
|
# - LibCanberraGtk2_FOUND: System has LibCanberra for GTK+ 2.x.
|
|
# - LibCanberraGtk2_INCLUDE_DIRS: LibCanberra GTK2 include directories.
|
|
# - LibCanberraGtk2_LIBRARIES: LibCanberra GTK2 libraries.
|
|
# - LibCanberraGtk2_DEFINITIONS: Compiler switches required for using LibCanberra GTK2.
|
|
#
|
|
# In addition, a target LibCanberra::gtk2 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(LibCanberraGtk2
|
|
libcanberra-gtk # pkgconfig
|
|
canberra-gtk.h # header
|
|
canberra-gtk # library
|
|
LibCanberra::gtk2 # imported target
|
|
)
|