Try to force linker language due to error:

CMake Error: Cannot determine link language for target "gtest".
CMake Error: CMake can not determine linker language for target:gtest