title: Should I be including header files or source files for Google Test?
body: <p>I'm learning how to use Google Test for one of my projects. When I include a header file I get a <code>LNK2019 unresolved external symbol...</code> error, however when I include the source file instead, it compiles successfully and the test runs. Have I made a mistake setting up my test project (I'm using Visual Studio 2019).</p>
  <p>Edit: Sorry for any confusion, should I just have the Google Test project as a library and write my tests inside my actual project, including the gtest header? Right now, I've got my tests inside the Google Test project, with a main function inside it that runs the tests.</p>
  <p>My current solution looks like this:</p>
  <pre><code>sln
      project
         src
      googleTest project
         tests
  </code></pre>
  <p>Should it look like this:</p>
  <pre><code>sln
      project
          src
          tests
      googleTest project (as library)
  </code></pre>