cmakelist可执行
时间: 2023-09-30 12:11:05 浏览: 112
在CMakeLists.txt文件中,可以使用add_executable命令来定义可执行文件。这个命令的语法如下:add_executable(<executable_name> <source_files>)。其中,<executable_name>是要生成的可执行文件的名称,<source_files>是要编译的源代码文件。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [CMakeList 将CPP代码编译成可执行文件示例](https://blog.csdn.net/banzhuantuqiang/article/details/125082331)[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_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [CMakeList1 将源文件编译成可执行文件](https://blog.csdn.net/weixin_41761608/article/details/108467052)[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_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文