Add CMake compilation support.
Add basic code for compiling successfully.