Cross-platform CMake version of Petr Beneš' ziplib, instead of the author's Visual Studio solution.
Tested on Windows, macOS, Fedora and Debian Linux.
Original project: https://bitbucket.org/wbenny/ziplib
Clone repo, then from the repo dir:
mkdir build
cd build
cmake ..
make
- Clone the repo to a subdirectory, for example
ziplib, optionally as a git submodule - From the main project's CMakeLists.txt:
add_subdirectory(ziplib)target_link_libraries(${PROJECT_NAME} PUBLIC ziplib)
- From the main project's source files, use #include directives from the
Sourcedir, for example#include <ZipLib/ZipFile.h>