Add cmake-build function