Cmake

Cmake build system implemented. Ugly but functional