目錄結構ui
root -|spa
|--**.cppcode
|--CmakeList.txtblog
|--current pathclass
|--(執行cmake ../)List
|-- (執行make的目錄) di
步驟:文件
1 編寫
CmakeLists.txt
cmake
2 [current path]$cmake path 【CmakeLists.txt文件所在的目錄】make
Cmd:
$ hello $ cd hello/build/ $ ls $ cmake ..
3 [current path] make
4 執行