title: How do I set up Google Test with a GNU Make project?
body: <p>Since there's basically no documentation on the Google Test webpage&mdash;how do I do that?
  What I have done until now:</p>
  
  <ul>
  <li>I downloaded googletest 1.6 from the project page and did a <code>./configure &amp;&amp; make</code> inside it</li>
  <li>I added <code>-Igtest/include</code> <code>-Lgtest/lib</code> to my compiler/linker flags</li>
  <li><p>I wrote a small sample test:</p>
  
  <pre><code>#include "gtest/gtest.h"
  
  int main(int argc, char **args)
  {
    return 0;
  }
  
  TEST(someTest,testOne)
  {
    ASSERT_EQ(5,5);
  }
  </code></pre>
  
  <p>This compiles fine, but the linker seems not to be amused at all. I get a huge pile of error messages in the style of</p>
  
  <blockquote>
    <p>test/main.o: In function <code>someTest_testOne_Test::TestBody()':
    main.cpp:(.text+0x96): undefined reference to</code>testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, char const*, int, char const*)'</p>
  </blockquote></li>
  </ul>
  
  <p>Now what did I forget to do?</p>