When I run the cmake .. command while installing Google Test, the following error occurs:
CMake Error at CMakeLists.txt:33 (add_subdirectory):
add_subdirectory given source "googlemock" which is not an existing
directory.
-- Configuring incomplete, errors occurred!
How do I solve this? These are the commands I was running beforehand:
- When I first used the
cmake ..command, it failed with'nmake' '-?'as the output - Then I tried running
cmake . -G "MinGW Makefiles", and received theadd-subdirectoryerror above - After that, when I tried the
cmake ..command again, the same error occurs
Screenshots of the errors:


