generate Makefile and related files in a single build folder1234mkdir buildcd buildcmake ..make install cmake on ubuntu12sudo apt-get updatesudo apt-get install cmake