summaryrefslogtreecommitdiff
path: root/externals/find-modules/FindOpus.cmake
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--externals/find-modules/FindOpus.cmake19
1 files changed, 19 insertions, 0 deletions
diff --git a/externals/find-modules/FindOpus.cmake b/externals/find-modules/FindOpus.cmake
new file mode 100644
index 000000000..b68a6046b
--- /dev/null
+++ b/externals/find-modules/FindOpus.cmake
@@ -0,0 +1,19 @@
1# SPDX-FileCopyrightText: 2022 yuzu Emulator Project
2# SPDX-License-Identifier: GPL-2.0-or-later
3
4find_package(PkgConfig)
5
6if (PKG_CONFIG_FOUND)
7 pkg_search_module(opus IMPORTED_TARGET GLOBAL opus)
8 if (opus_FOUND)
9 add_library(Opus::opus ALIAS PkgConfig::opus)
10 endif()
11endif()
12
13include(FindPackageHandleStandardArgs)
14find_package_handle_standard_args(Opus
15 REQUIRED_VARS
16 opus_LINK_LIBRARIES
17 opus_FOUND
18 VERSION_VAR opus_VERSION
19)