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.
16 lines
428 B
CMake
16 lines
428 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
|
|
||
2 years ago
|
find_package(PkgConfig QUIET)
|
||
2 years ago
|
pkg_search_module(OPUS QUIET IMPORTED_TARGET opus)
|
||
5 years ago
|
|
||
|
include(FindPackageHandleStandardArgs)
|
||
2 years ago
|
find_package_handle_standard_args(Opus
|
||
2 years ago
|
REQUIRED_VARS OPUS_LINK_LIBRARIES
|
||
|
VERSION_VAR OPUS_VERSION
|
||
5 years ago
|
)
|
||
2 years ago
|
|
||
|
if (Opus_FOUND AND NOT TARGET Opus::opus)
|
||
|
add_library(Opus::opus ALIAS PkgConfig::OPUS)
|
||
|
endif()
|