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 执行

猜你喜欢

转载自www.cnblogs.com/xiaoniu-666/p/11797533.html