cmake demos reference url www.hahack.com/codes/cmake/ https://github.com/wzpan/cmake-demo cmake compile mkdir build && cd build cmake .. make Because there is no 'cmake clean', so we append a 'build' directory for clean mid-files easily. git ignore build/