Building has been redone after discovering this article for building googletest which partially uses cmake's ExternalProject framework. This allows for building the tests on windows, even though there is a different issue that prevents them from being run.