We need some way to share various cmake functions, macros and maybe targets between multiple other cmake based projects that each reside in their own git repo. I was thinking making a cmake-utility project/git repo that can be used by these other projects. For starters it will just have to contain functionality for setting common compilerflags on targets, but in the future I think it could also be a place for shared cross compiler configuration.
So what is the best way to structure, export and import a cmake helper utility library/git repo ?
For starters I would like to be able to share a couple of cmake functions and macros.