aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/zstd/CMakeLists.txt
blob: 6c02d862287a31e73e270cb2351c8bff39dd6978 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
add_library(contrib-libs-zstd)
target_compile_options(contrib-libs-zstd PRIVATE
  -DZSTD_LEGACY_SUPPORT=1
  -DZSTD_MULTITHREAD
  -DDYNAMIC_BMI2
)
target_include_directories(contrib-libs-zstd PRIVATE
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy
)
target_link_libraries(contrib-libs-zstd PUBLIC
  contrib-libs-xxhash
)
target_sources(contrib-libs-zstd PRIVATE
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/huf_decompress_amd64.S
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/debug.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/entropy_common.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/error_private.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/fse_decompress.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/pool.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/threading.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/common/zstd_common.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/fse_compress.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/hist.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/huf_compress.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress_literals.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress_sequences.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_compress_superblock.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_double_fast.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_fast.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_lazy.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_ldm.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstd_opt.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/compress/zstdmt_compress.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/huf_decompress.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/zstd_ddict.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/zstd_decompress.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/decompress/zstd_decompress_block.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/cover.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/divsufsort.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/fastcover.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/dictBuilder/zdict.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v01.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v02.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v03.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v04.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v05.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v06.c
  ${CMAKE_SOURCE_DIR}/contrib/libs/zstd/lib/legacy/zstd_v07.c
)