Most utilities can not be packaged.
Summary
It isn't possible to generate installers/packages for a lot of utilities.
This affects binary as well as source packaging.
Steps to reproduce
Try to package VersionGenerator
, it won't work.
Dev environment
Tested on windows. (fixed by https://git.ircad.fr/Sight/sight/merge_requests/259/)
On Linux & MacOS.
What is the current bug behavior?
The CPack
variables are not updated and the package will be generated using the last settings. (i.e. the last packaged app)
Furthermore the fixup_bundle function fail when executable don't have any "Bundles" or "Plugins" to fix-up, which is usualy the case for basic executable.
Plus the .sh
helper is not installed for executable.
What is the expected correct behavior?
A package should be generated for the utility.
I would also be helpful to disable packaging when the project does not support it.
Possible fixes
Remove already linked library from the <lib>
argument of fixup_bundle
.
Install the shell script.