Add CMake build script for cp.