[linux]cmake make

来源:互联网 发布:足球指数分析软件 编辑:程序博客网 时间:2024/06/04 04:54

CMakeLikst.txt ——–(cmake)—–>CMakeCache.txt Makefile
CMakeCache.txt —–(cmake)—–>Makefile

Makefile—–(make)——->可执行文件

编译是把cpp弄成二进制文件.o(其实中间还有一个汇编的过程),
链接就是把这些二进制文件及外部的库整合成可执行文件。

CMakeCache.txt
The first time CMake is run, it produces a CMakeCache.txt file. This file contains things like the existence and location of native JPEG library. The entries are added in response to certain CMake commands (e.g. FIND_LIBRARY) as they are processed anywhere in CMakeLists files anywhere in the source tree. After CMake has been run, and created a CMakeCache.txt file – you may edit it.

如果之前”make”过, 修改了程序,要重新”make”之前,记得make clean

0 0