Moved CompressSave here

This commit is contained in:
2023-12-20 15:54:52 +08:00
parent 0d6493edd2
commit 6f224902f8
46 changed files with 12915 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
cmake_minimum_required(VERSION 3.2)
project(zstdwrap)
add_library(zstdwrap SHARED
dllmain.c zstdwrap.c zstdwrap.h)
target_compile_definitions(zstdwrap PRIVATE ZSTDWRAP_EXPORTS ZSTDLIB_STATIC_API)
if(MSVC)
target_compile_options(zstdwrap PRIVATE /MT)
else()
target_link_options(zstdwrap PRIVATE -static)
endif()
target_link_libraries(zstdwrap PRIVATE zstd)
if(WIN32)
set_target_properties(zstdwrap PROPERTIES PREFIX "")
endif()