Thank you!
I looked at the g++ commands when running the Makefile that cmake produces and was able to glue together something that works.
I am all for using cmake, unfortunately we have a little transition time before we switch build systems completely. My team doesn‘t want to mix systems until then.