GENERATED

GENERATED: 

作为一个文件标记,表示改文件是由其他第三方工具生成的源文件,一般和add_custom_command(OUTPUT...)  file(GENRATE)配合使用:

Is this source file generated as part of the build or CMake process.

Tells the internal CMake engine that a source file is generated by an outside process such as another build step, or the execution of CMake itself. This information is then used to exempt the file from any existence or validity checks. Generated files are created by the execution of commands such asadd_custom_command() and file(GENERATE).

When a generated file created by an add_custom_command() command is explicitly listed as a source file for any target in the same directory scope (which usually means the same CMakeLists.txt file), CMake will automatically create a dependency to make sure the file is generated before building that target.

Generated sources may be hidden in some IDE tools, while in others they might be shown. For the special case of sources generated by CMake’s AUTOMOC or AUTORCC functionality, the AUTOGEN_SOURCE_GROUP,AUTOMOC_SOURCE_GROUP and AUTORCC_SOURCE_GROUP target properties may influence where the generated sources are grouped in the project’s file lists.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值