visual-studio-2010directorycudainclude-pathproject-settings

Adding an additional include directory for VS10


I'm having some trouble figuring out how to add another directory for 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.

A screen grab of my project


Solution

  • 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.