Added CMake build system for Core.