Using OpenCV in VS you will find that each new project requires a reconfiguration of the Include directory and Lib directory, and there is no one configuration that can be configured once in the future. The answer is yes.
Take VS2010 as an example:
Open View--Other Windows--property manager
Open Debug in Project | x64 in the Microsoft.Cpp.x64.user properties, depending on your situation, choose release or x86, see your machine and choose, I was in debug, I was using a 64-bit machine, as shown
Configure the VC + + directory and Lib directory, as shown in the environment variable, I configured the OPENCV_DIR environment variable, the value is D:\OPENCV\build
So if the OpenCV directory changed before the project does not need to change, only need to change the value of the environment variable OPENCV_DIR.
The value of configuring the VC + + directory and Lib directory can be found in another article.
Link: http://blog.csdn.net/quincuntial/article/details/49641437
So far, close vs, Save the configuration, new projects do not need to configure the VC + + directory and Lib directory, as to add Lib file, can also be in the linker-input configuration, as well as inventory tools-input and output in the embedded list selected No, can be configured here, do not understand why the configuration of these two look
Link: http://blog.csdn.net/quincuntial/article/details/49641437.
OK, configure the generic OpenCV configuration to this, of course, other common configuration can be completed here, configured again, the new project does not need to reconfigure.