FindGTest.cmake does not support default cmake build of gtest on Windows
- A cmake build of gtest is, by default, installed to
${Env:ProgramFiles}/<dir>
not covered by the list where<dir>
is typically one of:
- googletest-distribution
- Project name of merged gtest+gmock repo.
- https://github.com/google/googletest/blob/703bd9caab50b139428cea1aaff9974ebee5742e/CMakeLists.txt#L10
- googletest
- Used by various packages and build systems.
- gtest
- Project name of gtest repo.
- https://github.com/google/googletest/blob/703bd9caab50b139428cea1aaff9974ebee5742e/googletest/CMakeLists.txt#L54
- This chunk of msvc2010 should be updated for later version as well (not sure where it came from, some nuget?).
Edited by Brad King