add zstd test

This commit is contained in:
2024-12-18 20:51:01 +00:00
parent a4b2317950
commit a69595b324
3 changed files with 108 additions and 2 deletions

21
cmake/FindZSTD.cmake Normal file
View File

@@ -0,0 +1,21 @@
# taken from: https://github.com/facebook/folly/blob/master/CMake/FindZstd.cmake
# SPDX-FileCopyrightText: Facebook, Inc. and its affiliates.
# SPDX-License-Identifier: Apache-2.0
#
# - Try to find Facebook zstd library
# This will define
# ZSTD_FOUND
# ZSTD_INCLUDE_DIR
# ZSTD_LIBRARY
#
find_path(ZSTD_INCLUDE_DIR NAMES zstd.h)
find_library(ZSTD_LIBRARY NAMES zstd)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(
ZSTD DEFAULT_MSG
ZSTD_LIBRARY ZSTD_INCLUDE_DIR
)
mark_as_advanced(ZSTD_INCLUDE_DIR ZSTD_LIBRARY)