cmakelist 添加cmake目录
时间: 2023-09-04 10:09:46 浏览: 124
cmake bin目录
要向CMakeLists.txt中添加cmake目录,您可以在文件的最顶端使用include_directories命令来添加cmake目录。如下所示:
include_directories(cmake)
这将告诉CMake在构建时搜索并包含cmake目录中的文件。请确保cmake目录位于正确的位置,并且包含您所需的文件。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [cmakelist 中添加pthread 库](https://blog.csdn.net/hejinjing_tom_com/article/details/124608702)[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: 100%"]
[ .reference_list ]
阅读全文