cmake 简易入门

目录结构ui

root -|spa

        |--**.cppcode

        |--CmakeList.txtblog

        |--current pathclass

                    |--(执行cmake ../)List

                    |-- (执行make的目录)          di

 

步骤:文件

 

编写 CmakeLists.txtcmake

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

Cmd:

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

 

3 [current path] make

4 执行

相关文章
相关标签/搜索