Mac and Linux installation
Handle Linux / Max package creation
This part shows how to create archive (.sh, .tar.gz and .tar.Z) and packages (.deb, .rpm and .dmg) of binaries programs and libraries of our project.
To make relevant package, you need to activate -DPACKAGE_MODE=yes in your cmake command:
This will speed up compilation by disabling install (see part "InstalltionProgram"), uninstall (see part "AutoUninstall"), update (see part "AutomaticUpdate") and unit tests.
Archive creation
Let's call cmake:
To create archives, you have to call the package target:
.sh, .tar.gz and .tar.Z archives of compiled binaries.
Package creation
To create package you have to enable the proper extension:
- DEB for Debian and Ubuntu: -DCREATE_DEB=yes
- RPM for Fedora: -DCREATE_RMP=yes
- DMG for Mac OS / OSX: -DCREATE_DMG=yes
Example for DEB:
Then, call the package target as in section "Archive creation":
In this example, it will create a .deb because we activated -DCREATE_DEB=yes in the cmake call.