cmakelist库函数
时间: 2023-08-29 08:10:46 浏览: 98
在CMakeLists.txt文件中,通过target_link_libraries命令可以将可执行程序链接到库函数上。例如,在给定的例子中,通过target_link_libraries(helloslam hello)将可执行程序helloslam链接到了名为hello的库函数上。这样在编译和运行程序时,程序就可以使用库函数中定义的功能了。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [CMake生成并使用库函数](https://blog.csdn.net/qq_41889538/article/details/127101156)[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^v92^chatsearchT0_1"}} ] [.reference_item]
- *2* [从零学习GCC,Makefile,CMakeList编译](https://blog.csdn.net/amateur_/article/details/113780562)[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^v92^chatsearchT0_1"}} ] [.reference_item]
- *3* [【cmake开发(1)】C代码编译过程,cmakelist基础步骤](https://blog.csdn.net/djfjkj52/article/details/106613745)[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^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文