Cpack source packaging.
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 callsgeneric_install
in itsCMakeLists.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 runcpack --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.
-
Windows -
macOS➡ won't work see #248 (closed) -
GNU/Linux