Skip to content

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:

cmake .. -DCMAKE_MODULE_PATH=PhoenixCMake/Prefix/share/cmake -DPACKAGE_MODE=yes

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:

cmake .. -DCMAKE_MODULE_PATH=PhoenixCMake/Prefix/share/cmake -DPACKAGE_MODE=yes

To create archives, you have to call the package target:

make package
It will automatically create .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:

cmake .. -DCMAKE_MODULE_PATH=PhoenixCMake/Prefix/share/cmake -DPACKAGE_MODE=yes -DCREATE_DEB=yes

Then, call the package target as in section "Archive creation":

make package

In this example, it will create a .deb because we activated -DCREATE_DEB=yes in the cmake call.