Adding an additional include directory for VS10
I'm having some trouble figuring out how to add another directory fo开发者_开发技巧r a single project. On a regular C/C++ project I'm allowed the option of navigating to the directory, but here I have to enter the directory myself, but this is a CUDA c/C++ project. My question is how would I add lets just say: C:\Users\USERNAME\Documents\Visual Studio 2010\Projects\CUDA Programs\common
as an include directory.
You should just be able to paste the path into the include directories list. You can separate paths with a semicolon.
c:\foo\baa;c:\program files\blah\blah;c:\whatever
In earlier versions of the build rules, the include directory did not seem to be added correctly if it ended in a backslash, or if it was wrapped in quotes, so try and avoid either of those.
Does this answer you question VS10 "Additional Include Directories" Point to VS9 Includes
精彩评论