I have split my project into several subprojects But all have a common part (directory with cmake scripts). Moreover some subproject need to include other subprojects (libraries).
I would prefer to use git submodules but as far as I know they have a limitation that a submodule needs to be in a separate directory in the repo (does it?) what ties my hands a little as I don't want to duplicate any source or cmake scripts in a superproject or any of subprojects.
How do you propose to solve it ?