meta: add compress module for (de)compressing data

This commit is contained in:
2025-07-28 22:27:24 +01:00
parent 65ee2a91b8
commit 56399b07d8
14 changed files with 610 additions and 1 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)