2022-08-22 00:11:13 +04:00
|
|
|
# SPDX-FileCopyrightText: 2022 yuzu Emulator Project
|
2022-07-27 22:06:50 +04:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2020-12-28 19:15:37 +04:00
|
|
|
|
2022-08-22 00:11:13 +04:00
|
|
|
find_package(PkgConfig)
|
2020-12-28 19:15:37 +04:00
|
|
|
|
2022-08-22 00:11:13 +04:00
|
|
|
if (PKG_CONFIG_FOUND)
|
|
|
|
pkg_search_module(libzstd IMPORTED_TARGET GLOBAL libzstd)
|
|
|
|
if (libzstd_FOUND)
|
|
|
|
add_library(zstd::zstd ALIAS PkgConfig::libzstd)
|
|
|
|
endif()
|
2020-12-28 19:15:37 +04:00
|
|
|
endif()
|
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(zstd
|
2022-08-22 00:11:13 +04:00
|
|
|
REQUIRED_VARS
|
|
|
|
libzstd_LINK_LIBRARIES
|
|
|
|
libzstd_FOUND
|
|
|
|
VERSION_VAR libzstd_VERSION
|
2020-12-28 19:15:37 +04:00
|
|
|
)
|