1 add_library(zstd STATIC
6 lib/common/entropy_common.c
7 lib/common/error_private.c
8 lib/common/fse_decompress.c
10 lib/common/threading.c
12 lib/common/zstd_common.c
13 lib/decompress/huf_decompress.c
14 lib/decompress/zstd_ddict.c
15 lib/decompress/zstd_decompress_block.c
16 lib/decompress/zstd_decompress.c
20 target_include_directories(zstd PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/lib")
21 target_include_directories(zstd INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/lib")
22 target_compile_definitions(zstd PRIVATE ZSTD_DISABLE_ASM)
23 set_target_properties(zstd PROPERTIES POSITION_INDEPENDENT_CODE ON)