visual studio添加第三方库文件,每次都要配置包含目录和库目录(繁琐),一劳永逸的办法
编辑这个文件
C:\Users\xpy\AppData\Local\Microsoft\MSBuild\v4.0\Microsoft.Cpp.Win32.user.props和Microsoft.Cpp.x64.user.props,分别是32位和64位的配置
形如:
<IncludePath>H:\software\programming\opencv_msvc\opencv\build\include\opencv2;H:\software\programming\opencv_msvc\opencv\build\include;$(IncludePath)</IncludePath>
<LibraryPath>H:\software\programming\video_stream\ffmpeg_dev\lib;H:\software\programming\video_stream\SDL2-2.0.12vc\lib;$(LibraryPath)</LibraryPath>
每个环境变量之间用分号隔开,放在$(includePath)前面;
上面的是包含路径,下面是库路径