Update googletest README.md
Use `EXCLUDE_FROM_ALL` in `add_subdirectory` to prevent `make install` from including lots of headers from gtest/gmock.
```
add_subdirectory(${CMAKE_BINARY_DIR}/googletest-src
                 ${CMAKE_BINARY_DIR}/googletest-build
                 EXCLUDE_FROM_ALL)
```
			
			
This commit is contained in:
		@@ -161,7 +161,8 @@ Existing build's `CMakeLists.txt`:
 | 
			
		||||
    # Add googletest directly to our build. This defines
 | 
			
		||||
    # the gtest and gtest_main targets.
 | 
			
		||||
    add_subdirectory(${CMAKE_BINARY_DIR}/googletest-src
 | 
			
		||||
                     ${CMAKE_BINARY_DIR}/googletest-build)
 | 
			
		||||
                     ${CMAKE_BINARY_DIR}/googletest-build
 | 
			
		||||
                     EXCLUDE_FROM_ALL)
 | 
			
		||||
 | 
			
		||||
    # The gtest/gtest_main targets carry header search path
 | 
			
		||||
    # dependencies automatically when using CMake 2.8.11 or
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user