摘要: 如果想要在源代码中使用CMakelists.txt中定义的变量就可以使用configure_file命令。 在配置头文件中使用@VAR@的语法引用CMakelists.txt中定义的变量。 示例如下: TutorialConfig.h.in // the configured options and 阅读全文
posted @ 2024-06-18 11:18 NotReferenced 阅读(77) 评论(0) 推荐(0)