integrate zstd
This commit is contained in:
@ -73,6 +73,14 @@ FetchContent_Declare(
|
||||
)
|
||||
FetchContent_MakeAvailable(sockpp)
|
||||
|
||||
FetchContent_Declare(
|
||||
zstd
|
||||
URL_HASH SHA256=3b1c3b46e416d36931efd34663122d7f51b550c87f74de2d38249516fe7d8be5
|
||||
URL ${CMAKE_SOURCE_DIR}/deps/zstd-v1.5.6-mirror.zip
|
||||
SOURCE_SUBDIR build/cmake
|
||||
)
|
||||
FetchContent_MakeAvailable(zstd)
|
||||
|
||||
include_directories(${CMAKE_SOURCE_DIR}/bpt/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/stlite)
|
||||
|
||||
|
BIN
deps/zstd-v1.5.6-mirror.zip
vendored
Normal file
BIN
deps/zstd-v1.5.6-mirror.zip
vendored
Normal file
Binary file not shown.
@ -28,4 +28,5 @@ ___
|
||||
- argparse:提供优雅的命令行参数解析
|
||||
- googletest:调试用
|
||||
- spdlog:运行日志,调试用(不是数据库系统日志)
|
||||
- sockpp:服务器模式下与Python交互用
|
||||
- sockpp:服务器模式下与Python交互用
|
||||
- zstd:为快照系统提供数据压缩(只使用最基本的压缩功能,不借用其patch功能)
|
@ -7,4 +7,5 @@ add_executable(${BACKEND_EXETUABLE_NAME} main.cpp)
|
||||
target_link_libraries(${BACKEND_EXETUABLE_NAME} argparse)
|
||||
target_link_libraries(${BACKEND_EXETUABLE_NAME} spdlog::spdlog)
|
||||
target_link_libraries(${BACKEND_EXETUABLE_NAME} sockpp)
|
||||
target_link_libraries(${BACKEND_EXETUABLE_NAME} libzstd_static)
|
||||
set_target_properties(${BACKEND_EXETUABLE_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
@ -1,4 +1,5 @@
|
||||
#include <sockpp/tcp_acceptor.h>
|
||||
#include <zstd.h>
|
||||
#include "basic_defs.h"
|
||||
const std::string main_version = "0.0.1";
|
||||
const std::string build_version = GIT_COMMIT_HASH;
|
||||
|
Reference in New Issue
Block a user