Installing only one target (and its dependencies) out of a complex project with cmake (open to better solutions)
Let's say I have a project made of several subprojects A, B, C, D... All subprojects depends on A , which changes rather frequently. Plus, there might be some further dependencies: in this example, D depends on B . Now: many people are working on these projects. The main CMakeLists.txt file should include all directories, so that the build all builds everything. But people would like also to be able to work only on one of these projects, and not having to build/install everything everytime. If I am working on D, I can easily build "only" D by calling cmake --build . --target D -- -j7 or ninja