cmake和make
时间: 2023-08-31 18:13:17 浏览: 88
CMake是一种跨平台编译工具,比Make更为高级,使用起来更加方便。它主要通过编写CMakeLists.txt文件来生成Makefile文件,然后使用make命令来编译源码生成可执行程序或共享库。\[2\]\[3\] CMake可以简单地生成Makefile文件给make工具使用,而make工具可以看作是一个智能的批处理工具,比gcc更高级。\[1\]所以,CMake和make是一对配合使用的工具,CMake负责生成Makefile文件,而make负责根据Makefile文件编译源码。
#### 引用[.reference_title]
- *1* [cmake和make详解](https://blog.csdn.net/lxn9492878lbl/article/details/83655152)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Make与CMake](https://blog.csdn.net/AAAA202012/article/details/123938845)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [make和cmake简要介绍](https://blog.csdn.net/Believer_YU/article/details/125612920)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文