[linux]cmake make

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值