mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-30 01:25:51 +00:00
39 lines
1 KiB
CMake
39 lines
1 KiB
CMake
enable_language(C ASM)
|
|
|
|
add_library(zstd
|
|
lib/common/debug.c
|
|
lib/common/entropy_common.c
|
|
lib/common/error_private.c
|
|
lib/common/fse_decompress.c
|
|
lib/common/pool.c
|
|
lib/common/threading.c
|
|
lib/common/xxhash.c
|
|
lib/common/zstd_common.c
|
|
lib/compress/fse_compress.c
|
|
lib/compress/hist.c
|
|
lib/compress/huf_compress.c
|
|
lib/compress/zstd_compress.c
|
|
lib/compress/zstd_compress_literals.c
|
|
lib/compress/zstd_compress_sequences.c
|
|
lib/compress/zstd_compress_superblock.c
|
|
lib/compress/zstd_double_fast.c
|
|
lib/compress/zstd_fast.c
|
|
lib/compress/zstd_lazy.c
|
|
lib/compress/zstd_ldm.c
|
|
lib/compress/zstdmt_compress.c
|
|
lib/compress/zstd_opt.c
|
|
lib/decompress/huf_decompress.c
|
|
lib/decompress/zstd_ddict.c
|
|
lib/decompress/zstd_decompress_block.c
|
|
lib/decompress/zstd_decompress.c
|
|
)
|
|
|
|
if(NOT MSVC AND CPU_ARCH_X64)
|
|
target_sources(zstd PRIVATE lib/decompress/huf_decompress_amd64.S)
|
|
endif()
|
|
|
|
target_include_directories(zstd PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/lib")
|
|
disable_compiler_warnings_for_target(zstd)
|
|
|
|
add_library(Zstd::Zstd ALIAS zstd)
|