cmake 简易入门

目录结构

root -|

        |--**.cpp

        |--CmakeList.txt

        |--current path

                    |--(执行cmake ../)

                    |-- (执行make的目录)          

 

步骤:

 

编写 CmakeLists.txt

2 [current path]$cmake   path 【CmakeLists.txt文件所在的目录】

Cmd:

        $ hello
        $ cd hello/build/
        $ ls
        $ cmake ..

 

3 [current path] make

4 执行

 

 

 

posted @ 2019-11-05 11:49  戒骄戒躁-沉淀积蓄  阅读(126)  评论(0)    收藏  举报