With CMake I use add_subdirectory(gtest) to build gtest for testing my project. I also use CPack to make an installer.
The problem is the gtest repo (which is a git submodule) runs install() on some files so they end up in my installer! Obviously I don't want that. Is there a way to disable install() commands for a given subdirectory without just removing them from the CMakeLists?