Comitting inital CMake support.

Further testing needed. Only the library itself has been "cmaked".
Support for unittest and examples is forthcoming.

Please check for compile errors on Linux and Windows.
There might wrong or missing includes on different platforms,
which is easy to fix though.