title: How to properly setup googleTest on OS X aside from XCode
body: <p>How do I setup gTest, so that I can link aganist the library? I will code in vim, so I just want to install the libraries, unlike the <a href="https://code.google.com/p/googletest/wiki/XcodeGuide">XCode setup</a>. Goal is to be able to link a project against the library by setting <code>-lgtest</code> as linker flag and optionally, if I did not write my own test mainroutine, the explicit <code>-lgtest_main</code> flag.</p>