Files
itgmania212121/extern/CMakeProject-miniz.cmake
T
Martin Natanoandteejusb 67d1c78450 Implement FILEMAN:Unzip(string zipPath, string targetPath, int strip)
Unzip zip file at `zipPath` to `targetPath`.
`strip` is optional and defaults to `0`. If set to a number larger than
`0`, that many components are removed from the paths of the extracted
files. e.g. `a/b/c` is replaced with `b/c` when stripping one component
or just `c` when stripping two.
Returns whether all files were extracted successfully.
2022-03-13 11:46:28 -07:00

15 lines
343 B
CMake

list(APPEND MINIZ_SRC "miniz/miniz.c")
list(APPEND MINIZ_HPP "miniz/miniz.h")
source_group("" FILES ${MINIZ_SRC} ${MINIZ_HPP})
add_library("miniz" ${MINIZ_SRC} ${MINIZ_HPP})
set_property(TARGET "miniz" PROPERTY FOLDER "External Libraries")
disable_project_warnings("miniz")
if(MSVC)
sm_add_compile_definition("miniz" _MBCS)
endif(MSVC)