Skip to content

Cpack source packaging.

Kevin GAUDET requested to merge cpack-source-packaging into dev

What does this MR do?

Closes #246 (closed).

Adds a new feature to package the source code of on specific application.

How to test it?

  • Choose an app you'd like to package. (e.g. VRRender, OgreViewer, PoCRegistration) This needs to be an installable app make sure it calls generic_install in its CMakeLists.txt
  • Set it (and only it) as the PROJECTS_TO_BUILD in your cmake config.
  • Run cmake cmake .
  • Build the source archive, if building with ninja you can run ninja package_source else run cpack --config CPackSourceConfig.cmake
  • Retrieve the source archive (e.g. VRRender-0.9-Source.zip if you chose VRRender).
  • Extract it somewhere.
  • Build it the same way you'd build sight (cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DUSE_CONAN=TRUE ../path/to/src/ && ninja)
  • Run the app.
  • See if everything works as it should.
  • Make sure there are no unnecessary apps, libraries or bundles in the archive.

Some results

A source package example : PoCRegistration-0.1-Source.tar.gz

Additional tests to run

This should better be tested on all platforms.

Edited by Kevin GAUDET

Merge request reports