Improve support for new style CMake projects
Helpers and fixes needed for the CMake modernization of LHCb projects.
On top the bare fixes, this includes the code to generate the stub CMake configuration to be used as starting point for the migration. This is not strictly needed and could be made optional, but I do not think it harms, and we can remove it once we migrated all the projects.
Edited by Marco Clemencic