I have incorporated GTest in my already existing CMake project by following this google doc( https://github.com/google/googletest...-cmake-project)

If I build my project through the command line there is no error, I am able to run UnitTest Exe. But as I need to debug the unit test, when I run the test in Qt Creator it builds it first but the build failed, throwing the error "gmock/h: no such file or directory". I am not able to understand why this error on Qt Creator only. As few stackoverflow post suggests only gmock.h should get included, that is already there.