mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-08 22:13:30 +08:00
Work in progress
This commit is contained in:
@@ -2,10 +2,15 @@ cmake_minimum_required(VERSION 3.2)
|
||||
|
||||
project(zstdwrap)
|
||||
|
||||
add_library(LZ4 SHARED
|
||||
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 "")
|
||||
|
||||
Reference in New Issue
Block a user