Packaging Software

This document describes the packaging of BASIS projects.

Distribution of Sources

A source package for distribution which only includes basic tests and selected modules can be generated using CPack. In particular, the build target package_source is used to generate a .tar.gz file with the source files of the distribution package. This package will include all source files except those which match one of the patterns in the CPACK_SOURCE_IGNORE_FILES CMake list which is set to common default patterns in the BasisPack.cmake module. Additional exclude patterns for a particular package shall be added to the Settings.cmake file of the project. Moreover, if the project contains different modules, only the enabled modules are included. For general steps on how to configure a build tree, see the common build instructions. Given a configured build tree with a generated Makefile, run the following command to generate the source distribution package:

make package_source