Add cmake capability. Only tested on windows.
#wub-13 state done