【发布时间】:2014-01-23 11:48:56
【问题描述】:
gflags 有 cmake-migration 分支,
它将在${buildir}/include 中生成标题,
如何包含生成的标题?
有var 喜欢gflags_generated_headers 吗?
谢谢!
【问题讨论】:
gflags 有 cmake-migration 分支,
它将在${buildir}/include 中生成标题,
如何包含生成的标题?
有var 喜欢gflags_generated_headers 吗?
谢谢!
【问题讨论】:
您必须使用 Include_directories 命令包含整个目录。
INCLUDE_DIRECTORIES(${buildir}/include)
然后将特定文件的 Generated 属性设置为 True。
set_source_files_properties(${buildir}/include/Myheader.h PROPERTIES GENERATED TRUE)
【讨论】: