cmakelist set()
时间: 2023-11-14 12:04:39 浏览: 85
在CMakeLists.txt文件中,set()函数用来设置变量的值。在引用的示例中,set(list_test a b c d)将变量list_test设置为包含字符串"a"、"b"、"c"和"d"的列表。这样就创建了一个名为list_test的列表变量,并将其赋值为"a"、"b"、"c"和"d"。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Cmakelist知识总结](https://blog.csdn.net/niewei120/article/details/127209564)[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: 50%"]
- *3* [cmake命令之list](https://blog.csdn.net/sinat_31608641/article/details/123101692)[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: 50%"]
[ .reference_list ]
阅读全文