mkdir build
cd build
cmake ..
make
11%] Built target libfoo
[ 23%] Built target libbar
[ 35%] Built target myApp
[ 82%] Built target gtest
make[2]: *** No rule to make target 'test/gtest/src/gtest-build/googlemock/gtest/libgtest.a', needed by 'test/testfoo/testfoo'. Stop.
make[1]: *** [CMakeFiles/Makefile2:233: test/testfoo/CMakeFiles/testfoo.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Running the following:
Results in this error: