add cmake support

Add a simple cmake build system. As a base for bringing cython binding.