Added CMake configuration.

I added a cmake build configuration to auto-generate the Makefile for different systems.