Show how #711 can be implemented: macro's
There are restrictions in the IO processing of cmake that make this a bit tricky.