summaryrefslogtreecommitdiff
path: root/externals/find-modules/FindOpus.cmake
diff options
context:
space:
mode:
authorGravatar Andrea Pappacoda2022-08-01 12:31:31 +0200
committerGravatar Andrea Pappacoda2022-08-01 12:31:31 +0200
commitadc8c03fe463c9c0aaa2cfcbc502bc65dc7b99b6 (patch)
treefcfa229ec1ace9288611d04c84508594becb763c /externals/find-modules/FindOpus.cmake
parentbuild: simplify find modules (diff)
downloadyuzu-adc8c03fe463c9c0aaa2cfcbc502bc65dc7b99b6.tar.gz
yuzu-adc8c03fe463c9c0aaa2cfcbc502bc65dc7b99b6.tar.xz
yuzu-adc8c03fe463c9c0aaa2cfcbc502bc65dc7b99b6.zip
build(externals): rename Findopus to FindOpus
This better matches upstream's FindOpus.cmake file, and it will make using upstream's FindOpus.cmake file easier.
Diffstat (limited to 'externals/find-modules/FindOpus.cmake')
-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)