设inc为库的头文件目录,lib为静态库目录,MACRO为要定义的宏,可以在default.vcxproj中加入:
<PropertyGroup>
<IncludePath>inc;$(IncludePath)</IncludePath>
<LibraryPath>lib;$(LibraryPath)</LibraryPath>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions>MACRO;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>