Automated building with CMake