Fix issue with including as external project in cmake
This is related to the following issues:
https://bugs.archlinux.org/task/60216
https://bugs.archlinux.org/task/68440
They have both been marked as fixed, but they don't appear to be fixed. The issue is that if you include gtest or gmock in your CMake project, it fails to run because GOOGLETEST_VERSION
is not defined. This variable is defined in the toplevel CMakeLists.txt file, which is not installed by the PKGBUILD.
This PR changes the structure to, as far as I can tell, the intended structure for gtest and gmock.
Edited by Hans Gaiser