Return directly if GTEST_FOUND and GMOCK_FOUND were already set.

We might be in a superproject which has already built Google Test
and Google Mock. No need to build it twice.