Fix configuration error if GTest is found in system
The build system did not check if GTest is already available in the system and always try to install GTest with CbmRoot. In case a system version exist CMake will crash with an error about a redefinition of targets. The problem is described in #3723 and fixed with this commit.