cpack
CPack is a packaging tool bundled with CMake that provides a unified approach to creating platform-native installers and archives for software projects. It does not build the software itself, but rather wraps the project into installable packages using a variety of packaging systems through generator backends.
With CPack, packaging is configured in the CMake project. A typical workflow involves adding a final line
CPACK_GENERATOR selects one or more packaging formats. Examples include ZIP or TGZ for archives, DEB or RPM
CPack is suitable for multi-platform projects because a single CMake configuration can produce multiple package formats.