Based on the original work of Gilles Vollant
add_subdirectory (minizip)
target_link_libraries(${PROJECT_NAME} minizip)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/minizip)
In your code you can use it like
#include <minizip/zip.h>
- Zlib. The Zlib library allows to deflate compressed files and to create gzip (.gz) files. Zlib is free software and small.
#include <minizip/miniunz.h>
unzip(src, dst);