

Go into the correct directory structure with the correct Setting up install commands, the first step is to make sure the files Tied to the install commands working correctly for a project. With source packages, CPack makes a copy of the source tree andĬreates a zip or tar file. For many of the other installers, native tools must be present Library version of tar and does not require tar to be installed on the For simple tar based packages, CPack includes a Generator written in C++ that is used to run the native tool andĬreate the package. For each type of packaging tool supported, there is a CPack The implementation of CPack works in a similar way Using NullSoft installer NSIS or WiX, Mac OS X PackageMaker tool, OS X DragĪnd Drop, OS X X11 Drag and Drop, Cygwin Setup packages, Debian Currently CPack supports the creation of Windows installers Packaging tools, rather it provides a single interface to a variety of CPack works in much the same way asĬMake does for building software. Another more powerful approach is to use CPack, included inĬPack is a tool included with CMake, it can be used to create

However, the DESTDIR approach falls short on Windows, simplyīecause path names typically start with a drive letter (C:/) and youĬannot simply prefix one full path with another and get a valid path Location, then to tar or zip up that directory and move it to another The most basic way to do this is to use the DESTDIRĮnvironment variable to install the software into a temporary For these cases, what is needed is a way toīuild the software on one machine, and then move the install tree to aĭifferent machine. Source, or it may take a long time to compile, or in the case of anĮnd user application, the users may not have the skill or the tools toīuild the application. Users of your software may not always want to, or be able to, build
