From: Nathan Moinvaziri Date: Mon, 18 Sep 2023 00:11:48 +0000 (-0700) Subject: Added instructions for cpack to readme. X-Git-Tag: 2.1.4~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57a2ed9e503bfeb92577c87aa49b9b0727d97120;p=thirdparty%2Fzlib-ng.git Added instructions for cpack to readme. --- diff --git a/README.md b/README.md index dfd461a01..d848d7987 100644 --- a/README.md +++ b/README.md @@ -131,7 +131,7 @@ LD_PRELOAD=/opt/zlib-ng/libz.so.1.2.13.zlib-ng /usr/bin/program To install zlib-ng system-wide using cmake: -``` +```sh or powershell cmake --build . --target install ``` @@ -139,10 +139,22 @@ cmake --build . --target install To install zlib-ng system-wide using the configure script: -``` +```sh make install ``` +### CPack + +After building with cmake, an installation package can be created using cpack. By default a tgz package is created, +but you can append `-G ` to each command to generate alternative packages types (TGZ, ZIP, RPM, DEB). To easily +create a rpm or deb package, you would use `-G RPM` or `-G DEB` respectively. + +```sh or powershell +cd build +cpack --config CPackConfig.cmake +cpack --config CPackSourceConfig.cmake +``` + ### Vcpkg Alternatively, you can build and install zlib-ng using the [vcpkg](https://github.com/Microsoft/vcpkg/) dependency manager: