title: Cannot open include file - 'gtest.h' - No such file or directory
body: <p>I am trying to build gtest in Visual Studio, but seem to be having some problems getting the references and includes specified correctly for the project. </p>
  
  <p><strong>error C1083: Cannot open include file: 'gtest/gtest.h': No such file or directory c:\gtest-1.6.0\src\gtest-all.cc</strong></p>
  
  <pre><code>1&gt;InitializeBuildStatus:
  1&gt;  Touching "Debug\GTestBuild.unsuccessfulbuild".
  1&gt;ClCompile:
  1&gt;  gtest-all.cc
  1&gt;c:\gtest-1.6.0\src\gtest-all.cc(40): fatal error C1083: Cannot open include file: 'gtest/gtest.h': No such file or directory
  1&gt;
  1&gt;Build FAILED.
  1&gt;
  1&gt;Time Elapsed 00:00:01.61
  </code></pre>
  
  <p>To the Project, I added in the  Project Project Pages > C/C++>Additional Include Directories list references to the following:</p>
  
  <pre>
  c:\gtest-1.6.0
  c:\gtest-1.6.0\src
  c:\gtest-1.6.0\include
  c:\gtest-1.6.0\include\gtest
  </pre>
  
  <p>but I seem to be missing some other includes or probably did not set this right and would appreciate some help in solving this, and learning how to do this for future as well. </p>
  
  <p>PS.  Switching from </p>
  
  <pre><code>#include "gtest/gtest.h"
  // The following lines pull in the real gtest *.cc files.
  #include "src/gtest.cc"
  #include "src/gtest-death-test.cc"
  #include "src/gtest-filepath.cc"
  #include "src/gtest-port.cc"
  #include "src/gtest-printers.cc"
  #include "src/gtest-test-part.cc"
  #include "src/gtest-typed-test.cc"
  </code></pre>
  
  <p>To</p>
  
  <pre><code>#include &lt;gtest/gtest.h&gt;
  
  // The following lines pull in the real gtest *.cc files.
  #include &lt;src/gtest.cc&gt;
  #include &lt;src/gtest-death-test.cc&gt;
  #include &lt;src/gtest-filepath.cc&gt;
  #include &lt;src/gtest-port.cc&gt;
  #include &lt;src/gtest-printers.cc&gt;
  #include &lt;src/gtest-test-part.cc&gt;
  #include &lt;src/gtest-typed-test.cc&gt;
  </code></pre>
  
  <p>is not a solution. I have tried this and it does not work. </p>