overhaul cmake api

3 jobs for !182 with dev/rename-cmake-wrapper-input in 24 minutes and 51 seconds (queued for 1 second)
latest merge request