什么文件属于CDT管理构建中的构建目标? [英] What files belong to a build target in CDT managed build?

查看:125
本文介绍了什么文件属于CDT管理构建中的构建目标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在CDT的托管生成器中,如何将个别文件分配给构建配置?

In CDT's managed builder, how are individual files assigned to build configurations?

具体来说,我如何:


  • 表示配置A必须构建并链接来自文件夹A和B的源,而配置B应使用文件夹A和C,

  • 包括源

推荐答案


  • C包含.cpp文件,请尝试:

    在项目浏览器窗格中选择文件夹C,右键单击>从构建中排除...>检查配置A>确定

    选择文件夹B,右键单击>从构建中排除...>检查配置B>确定

    此方式配置A将忽略文件夹C中的.cpp文件,配置B将忽略文件夹B.

  • 第二点:也许您可以使用import> general> file system将外部文件夹中的源码导入您的项目?

    • 1st point, assuming there are 3 folders A,B & C containing .cpp files, try this :
      select folder C in the 'project explorer' pane, right-click > exclude from build... > check configuration A > ok
      select folder B, right-click > exclude from build... > check configuration B > ok
      This way configuration A will ignore .cpp files from folder C and configuration B will ignore folder B.
    • 2nd point : maybe you could use import > general > file system to import source from an external folder into your project ?
    • 这篇关于什么文件属于CDT管理构建中的构建目标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆