Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
gflags有 cmake-migration 分支, 它会在其中生成标头${buildir}/include, 我如何包含生成的标头? 有var喜欢的gflags_generated_headers吗?谢谢!
${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)