diff options
author | Andrea Pappacoda <andrea@pappacoda.it> | 2022-08-01 12:31:31 +0200 |
---|---|---|
committer | Andrea Pappacoda <andrea@pappacoda.it> | 2022-08-01 12:31:31 +0200 |
commit | adc8c03fe463c9c0aaa2cfcbc502bc65dc7b99b6 (patch) | |
tree | fcfa229ec1ace9288611d04c84508594becb763c /externals/find-modules/FindOpus.cmake | |
parent | 064625ef58d4166b4983119f5389118113505a84 (diff) |
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 @@ +# SPDX-FileCopyrightText: 2022 yuzu Emulator Project +# SPDX-License-Identifier: GPL-2.0-or-later + +find_package(PkgConfig) + +if (PKG_CONFIG_FOUND) + pkg_search_module(opus IMPORTED_TARGET GLOBAL opus) + if (opus_FOUND) + add_library(Opus::opus ALIAS PkgConfig::opus) + endif() +endif() + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(Opus + REQUIRED_VARS + opus_LINK_LIBRARIES + opus_FOUND + VERSION_VAR opus_VERSION +) |