cmake添加第三方库
时间: 2023-09-27 16:08:04 浏览: 104
Android CMake调用第三方库
在CMake中添加第三方库有多种方法。一种常见的方法是使用`find_package`命令。这个命令可以在CMake的模块路径中查找并引入第三方库。它可以自动定位并设置库的头文件路径、库文件路径和链接选项。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [CMake 引入第三方库](https://blog.csdn.net/ccsu_zzh/article/details/129104139)[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^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [【cmake学习】cmake 引入第三方库(头文件目录、库目录、库文件)](https://blog.csdn.net/challenglistic/article/details/129093434)[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^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文