【发布时间】:2020-03-31 22:24:47
【问题描述】:
我正在使用提供 .props 文件的第三方 SDK,该文件用于 Visual Studio 项目。
我使用Premake 生成我的 .vcxproj 文件,而不是使用 SDK 的项目向导。
如何告诉 Premake 生成 vcxproj 文件,使其添加对第三方 .props 文件的引用?
目前,Premake 添加到我的 vcxproj 文件中:
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
然而,我希望它变成这样:
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="ACME_SDK.props" Condition="exists('ACME_SDK.props')" />
</ImportGroup>
所以多了一个 Import 标签。
【问题讨论】:
标签: visual-studio premake vcxproj