Packaging with CPack
While building projects from source has its benefits, it can be time-consuming and complex, which isn’t ideal for end users, especially non-developers. A more convenient distribution method is using binary packages, containing compiled artifacts and other necessary static files. CMake supports generating such packages with a command-line tool called cpack
.
To generate a package, select an appropriate package generator for your target platform and package type. Don’t confuse package generators with buildsystem generators like Unix Makefiles or Visual Studio.
The following table lists the available package generators:
Generator Name |
Produced File Types |
Platform |
Archive |
7Z, 7zip - ( |