How to install Google Test on Ubuntu without root access?
<p>I am trying to install Google Test according to <a href="https://stackoverflow.com/a/21314020/6560773">this answer</a> on Ubuntu without root access, as I need learn and use it at work.</p>

<p>Managed to get these done in my own user folder:</p>

<pre><code>$ mkdir ~/temp
$ cd ~/temp
$ unzip gtest-1.7.0.zip 
$ cd gtest-1.7.0
$ mkdir mybuild
$ cd mybuild
$ cmake -DBUILD_SHARED_LIBS=ON -Dgtest_build_samples=ON -G"Unix Makefiles" ..
$ make
</code></pre>

<p>It seems I already have gtest in /usr/src/gtest altough I don't want to use this, because it was not me who installed it and I'm not sure about its version, nor in its availability. Can't even delete it without permission.</p>

<p>Still the instruction ends as:</p>

<pre><code>$ cp -r ../include/gtest ~/usr/gtest/include/
$ cp lib*.so ~/usr/gtest/lib
</code></pre>

<p>What am I missing here?</p>