aboutsummaryrefslogtreecommitdiff
path: root/cmake/FindCanberra.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/FindCanberra.cmake')
-rw-r--r--cmake/FindCanberra.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmake/FindCanberra.cmake b/cmake/FindCanberra.cmake
new file mode 100644
index 00000000..fbbe1fef
--- /dev/null
+++ b/cmake/FindCanberra.cmake
@@ -0,0 +1,10 @@
+include(PkgConfigWithFallback)
+find_pkg_config_with_fallback(Canberra
+ PKG_CONFIG_NAME libcanberra
+ LIB_NAMES canberra
+ INCLUDE_NAMES canberra.h
+)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(Canberra
+ REQUIRED_VARS Canberra_LIBRARY)