2022-07-28 16:44:52 +02:00
|
|
|
# SPDX-FileCopyrightText: 2022 yuzu Emulator Project
|
2022-05-15 02:06:02 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2020-05-08 15:09:29 -06:00
|
|
|
|
2022-07-28 16:44:52 +02:00
|
|
|
find_package(PkgConfig)
|
2020-05-08 15:09:29 -06:00
|
|
|
|
2022-07-28 16:44:52 +02:00
|
|
|
if (PKG_CONFIG_FOUND)
|
|
|
|
|
pkg_search_module(opus IMPORTED_TARGET GLOBAL opus)
|
|
|
|
|
if (opus_FOUND)
|
2022-08-01 12:31:31 +02:00
|
|
|
add_library(Opus::opus ALIAS PkgConfig::opus)
|
2022-07-28 16:44:52 +02:00
|
|
|
endif()
|
|
|
|
|
endif()
|
2020-05-08 15:09:29 -06:00
|
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
2022-08-01 12:31:31 +02:00
|
|
|
find_package_handle_standard_args(Opus
|
2022-07-28 16:44:52 +02:00
|
|
|
REQUIRED_VARS
|
|
|
|
|
opus_LINK_LIBRARIES
|
|
|
|
|
opus_FOUND
|
|
|
|
|
VERSION_VAR opus_VERSION
|
2020-05-08 15:09:29 -06:00
|
|
|
)
|