get the solution from CMake cannot find GoogleTest required library in Ubuntu
Google test was probably not properly installed (libgtest-dev may install only source files that needed to be compiled). I had the same problem and I followed the instructions from http://www.eriksmistad.no/getting-started-with-google-test-on-ubuntu/
1 | sudo apt-get install libgtest-dev |
This worked for me.
Thanks for Ivan Kush