目录结构
root -|
|--**.cpp
|--CmakeList.txt
|--current path
|--(执行cmake ../)
|-- (执行make的目录)
步骤:
1 编写
CmakeLists.txt
2 [current path]$cmake path 【CmakeLists.txt文件所在的目录】
Cmd:
$ hello $ cd hello/build/ $ ls $ cmake ..
3 [current path] make
4 执行