CMAKE_SOURCE_DIR
时间: 2023-08-07 19:04:12 浏览: 185
CMake_MapTreeToIDE
CMAKE_SOURCE_DIR是一个cmake系统预定义变量,它指定了包含PROJECT()命令的最近一个CMakeLists.txt文件所在的文件夹路径。\[1\]这个变量可以用来指定工程的根目录,方便在CMakeLists.txt文件中引用其他文件或目录。
#### 引用[.reference_title]
- *1* *2* *3* [CMAKE常用内置变量解释:CMAKE_SOURCE_DIR/EXECUTABLE_OUTPUT_PATH/CMAKE_EXPORT_COMPILE_COMMANDS](https://blog.csdn.net/qq_33726635/article/details/121896681)[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^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文