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.

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 .

OSX

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

make && cpack .

Linux

make && make linuxpreinstall && cpack .

Windows

Make sure build type is set to Release

octocat

Build the target PACKAGE in visual studio