TPCCLIB
Packaging tpcclib

Packaging

Simple packaging tool, CPack, comes with CMake. Current version of CMakeLists.txt builds zip or tgz packages, depending on the platform, but no installer.

Build and test the project in the usual manner and then run CPack on it. To build a binary distribution (including executable programs) you would move to the build directory and run

make package

To create a source distribution you would type

make package_source

To create both binary and source code packages

make package_source package

Packages will be created in a folder ‘../packages’.

Building an installer

Installer can be built with CPack. You have to edit file CMakeLists.txt, and set the CPACK_GENERATOR to use the generator that you like.

In Windows, you would need to install NSIS ; currently it might not automatically set itself to Windows PATH, therefore you have to add its bin directory to your PATH.

CPack does not currently support productbuild, which is the default package generator in recent macOS versions, but support is coming in CMake version 3.7.0. Currently, in order to create a installer for macOS you need to install PackageMaker.

Build and test the project in the usual manner and then run CPack on it. Binary and source distribution can be done with the commands as before.