Build with CMake

Hi,

This adds support for CMake build system.

Examples from the `sample` directory are not built as for now.