]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Added instructions for cpack to readme.
authorNathan Moinvaziri <nathan@nathanm.com>
Mon, 18 Sep 2023 00:11:48 +0000 (17:11 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Tue, 19 Sep 2023 15:32:25 +0000 (17:32 +0200)
README.md

index dfd461a014db5bd087e1334801a9c676fa730a6f..d848d7987d2d2ab9432308ea4d196ce1ababeb62 100644 (file)
--- 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 <format>` 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: