Implemented build with CMake.