在WIN机器上安装了BOOST库,每次用VS2010新建使用BOOST库的工程时都要手工在工程文件中修改INCLUDE路径,烦,而VS2010去掉了以往在tools->option中设置全局默认INCLUDE路径的地方,网上找了一下,发现
这里有答案
http://stackoverflow.com/questions/3349378/edit-includepath-macro-in-visual-studio-2010
修改文件
C:\Documents and Settings\用户名\Local Settings\Application Data\Microsoft\MSBuild\v4.0\Microsoft.Cpp.Win32.user.props
WIN7下对应文件
C:\Users\用户名\AppData\Local\Microsoft\MSBuild\v4.0\Microsoft.Cpp.Win32.user.props
在这里面添加了BOOST库的INCLUCE目录后,每个新建的工程中就默认有BOOST的INCLUCE路径了。
======================举例说明=============================
下方是我在配置文件中添加了DIRECTX库之后的文件内容:
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets">
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup />
<ItemDefinitionGroup>
<ClCompile>
<AdditionalIncludeDirectories>E:\Programs\【SDK】\dx90sdk\Include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<AdditionalLibraryDirectories>E:\Programs\【SDK】\dx90sdk\Lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<ItemGroup />
</Project>