(core): [Linux] generate debug app scripts
Description
- Generate debug app scripts to launch Sight applications on Linux
Proposal
- Add a new template in https://git.ircad.fr/sight/sight/-/blob/dev/cmake/build/linux
- It will only be instanced when in Debug mode
- Replace the following line:
exec "$bindir/@LAUNCHER@" \""$moduledir/@PROFILE_PATH@"\" $@
with
exec gdb --args "$bindir/@LAUNCHER@" \""$moduledir/@PROFILE_PATH@"\" $@
We could also consider adding script arguments to enable debugging.