X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=deps%2Flibchdr%2Fdeps%2Fzstd-1.5.5%2FCMakeLists.txt;fp=deps%2Flibchdr%2Fdeps%2Fzstd-1.5.5%2FCMakeLists.txt;h=1f32446f79374e3b7b698efa28e3c1803170b453;hb=648db22b0750712da893c306efcc8e4b2d3a4e3c;hp=0000000000000000000000000000000000000000;hpb=e2fb1389dc12376acb84e4993ed3b08760257252;p=pcsx_rearmed.git diff --git a/deps/libchdr/deps/zstd-1.5.5/CMakeLists.txt b/deps/libchdr/deps/zstd-1.5.5/CMakeLists.txt new file mode 100644 index 00000000..1f32446f --- /dev/null +++ b/deps/libchdr/deps/zstd-1.5.5/CMakeLists.txt @@ -0,0 +1,24 @@ +add_library(zstd STATIC + lib/zstd.h + lib/zstd_errors.h + lib/zdict.h + 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/decompress/huf_decompress.c + lib/decompress/zstd_ddict.c + lib/decompress/zstd_decompress_block.c + lib/decompress/zstd_decompress.c +) + + +target_include_directories(zstd PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/lib") +target_include_directories(zstd INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/lib") +target_compile_definitions(zstd PRIVATE ZSTD_DISABLE_ASM) +set_target_properties(zstd PROPERTIES POSITION_INDEPENDENT_CODE ON) +