diff options
| author | 2022-08-01 12:31:31 +0200 | |
|---|---|---|
| committer | 2022-08-01 12:31:31 +0200 | |
| commit | adc8c03fe463c9c0aaa2cfcbc502bc65dc7b99b6 (patch) | |
| tree | fcfa229ec1ace9288611d04c84508594becb763c /externals/find-modules/FindOpus.cmake | |
| parent | build: simplify find modules (diff) | |
| download | yuzu-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.cmake | 19 |
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 | |||
| 4 | find_package(PkgConfig) | ||
| 5 | |||
| 6 | if (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() | ||
| 11 | endif() | ||
| 12 | |||
| 13 | include(FindPackageHandleStandardArgs) | ||
| 14 | find_package_handle_standard_args(Opus | ||
| 15 | REQUIRED_VARS | ||
| 16 | opus_LINK_LIBRARIES | ||
| 17 | opus_FOUND | ||
| 18 | VERSION_VAR opus_VERSION | ||
| 19 | ) | ||