Cross project cmake utils structure/export/import

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.

As a verry good example see project_options

Thanks a lot :slight_smile: