In Visual Studio 2010, how to I set up my VC++ import directories so that I can build my project from multiple machines? For example, my project requires the use of a graphics library that’s installed on both of the machines I’m using, but located on different paths.
I imagine the answer is some sort of macro, but I’m new to Visual Studio, so I’m not sure if my intuitions are correct.
I’m transitioning from the Matlab environment, where you can set the path directly per machine, rather than per project. Does Visual Studio have such functionality, or is everything at the level of project properties?
You can indeed use macros to set your include and lib directories on a per machine basis.
if you have your files in your project directory you can use:
$(SolutionDir)\This will point to the full path of your solution directory root$(ProjectDir)\This will point to the full path of your project directory root.You can place your graphics library in your project directory and point to it like:
$(ProjectDir)\graphicslib, for example, or any other place you want to put it in your solution.More info is located here http://msdn.microsoft.com/en-us/library/c02as0cs.aspx