2022-08-21 16:11:13 -04:00
|
|
|
# SPDX-FileCopyrightText: 2022 yuzu Emulator Project
|
2022-07-27 14:06:50 -04:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2020-12-28 10:15:37 -05:00
|
|
|
|
2022-08-21 16:11:13 -04:00
|
|
|
find_package(PkgConfig)
|
2020-12-28 10:15:37 -05:00
|
|
|
|
2022-08-21 16:11:13 -04:00
|
|
|
if (PKG_CONFIG_FOUND)
|
|
|
|
pkg_search_module(liblz4 IMPORTED_TARGET GLOBAL liblz4)
|
|
|
|
if (liblz4_FOUND)
|
|
|
|
add_library(lz4::lz4 ALIAS PkgConfig::liblz4)
|
|
|
|
endif()
|
2020-12-28 10:15:37 -05:00
|
|
|
endif()
|
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(lz4
|
2022-08-21 16:11:13 -04:00
|
|
|
REQUIRED_VARS
|
|
|
|
liblz4_LINK_LIBRARIES
|
|
|
|
liblz4_FOUND
|
|
|
|
VERSION_VAR liblz4_VERSION
|
2020-12-28 10:15:37 -05:00
|
|
|
)
|