I have incorporated GTest in my already existing CMake project by following this google doc
If I build my project through the command line there is no error, I am able to