I'd suggest trying nimterop. It already supports [configure](https://github.com/nimterop/nimterop/blob/master/nimterop/git.nim#L122) so cmake isn't far away.
You can start with the [template](https://github.com/nimterop/nimterop/blob/master/nimterop/template.nim). Which headers are you looking at wrapping?
