cmake中cmakelist.txt文件注释
时间: 2023-09-30 15:12:41 浏览: 152
在CMakeLists.txt文件中,注释可以通过添加井号(#)来实现。井号后的所有内容都将被视为注释,并且不会对CMake的构建过程产生任何影响。注释可以用于解释代码的功能、提供相关信息或者给其他开发者提供指导。在CMakeLists.txt文件中添加注释是一个良好的编程实践,可以提高代码的可读性和可维护性。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [CMakelist.txt文件中常用部分最通俗易懂的解析(示例+解析)](https://blog.csdn.net/weixin_45590473/article/details/122608048)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [Cmake知识-编写CMakeLists.txt文件编译](https://blog.csdn.net/liuqingsongmsdn2014/article/details/112548590)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文