mirror of https://github.com/yuzu-mirror/yuzu
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
470 B
CMake
20 lines
470 B
CMake
3 years ago
|
# SPDX-FileCopyrightText: 2022 yuzu Emulator Project
|
||
3 years ago
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||
5 years ago
|
|
||
3 years ago
|
find_package(PkgConfig)
|
||
5 years ago
|
|
||
3 years ago
|
if (PKG_CONFIG_FOUND)
|
||
|
pkg_search_module(opus IMPORTED_TARGET GLOBAL opus)
|
||
|
if (opus_FOUND)
|
||
3 years ago
|
add_library(Opus::opus ALIAS PkgConfig::opus)
|
||
3 years ago
|
endif()
|
||
|
endif()
|
||
5 years ago
|
|
||
|
include(FindPackageHandleStandardArgs)
|
||
3 years ago
|
find_package_handle_standard_args(Opus
|
||
3 years ago
|
REQUIRED_VARS
|
||
|
opus_LINK_LIBRARIES
|
||
|
opus_FOUND
|
||
|
VERSION_VAR opus_VERSION
|
||
5 years ago
|
)
|