Skip to content

Generating Installers

StasJ edited this page Dec 7, 2018 · 7 revisions

Prerequisites for all platforms

In the top level CMakeLists.txt change the following:

  • set (CMAKE_BUILD_TYPE Debug) -> set (CMAKE_BUILD_TYPE Release)
  • option (DIST_INSTALLER “...” OFF) -> option (DIST_INSTALLER “...” ON)

Configure with CMake in an empty build directory.

Note

Sometimes after running make, CPack will not load the configuration for which type of installer to build. You can either do this manually with cpack -G <generator> . or by rerunning cmake .. && cpack .

The <generator> for each OS is:

  • MacOS: DragNDrop
  • Linux: STGZ

OSX

Make sure to install the 10.9 OS X SDK from the apple dev repositories.

make && make installer

Linux

make && make linuxpreinstall && make installer

Windows

Make sure build type is set to Release

octocat

Build the target PACKAGE in visual studio