目录结构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 执行