1f32446f79374e3b7b698efa28e3c1803170b453
[pcsx_rearmed.git] / deps / libchdr / deps / zstd-1.5.5 / CMakeLists.txt
1 add_library(zstd STATIC
2         lib/zstd.h
3         lib/zstd_errors.h
4         lib/zdict.h
5         lib/common/debug.c
6         lib/common/entropy_common.c
7         lib/common/error_private.c
8         lib/common/fse_decompress.c
9         lib/common/pool.c
10         lib/common/threading.c
11         lib/common/xxhash.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
17 )
18
19
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)
24