<分区>
我正在使用一些仅由 header 组成的开源(MIT 许可证)项目。 我只使用了这个项目所提供的一小部分,而且我不想无缘无故地在我的项目中包含所有标题。我创建了一个示例项目并将开源项目包含在其中。有没有什么方法可以获取我的示例项目使用的所有 header 的列表?
澄清一下,在我的示例项目中我有:
#include "opensourceMainHeader.h"
和opensourceMainHeader.h
有:
#include "opensourceAuxiliaryHeader1.h"
#include "opensourceAuxiliaryHeader2.h"
#include "opensourceAuxiliaryHeader3.h"
等等。然后我想获得(我猜测来自 VC++ 中的链接器或其他工具链)所使用的 header 列表。
这可能吗?