I really like how modern CMake allows adding sources to a top-level target, from within a subdirectory. Before this, (I think) I needed to have per-subdirectory library targets defined, to have subdir CMakeLists.txt for a top-level executable.
However, now I’m missing the advantage, especially for very large projects, of being able to compile the sources for a subdirectory only (useful e.g. when working on a widely used header): running make in the (binary) subdirectory doesn’t trigger any compiles at all.
How can I trigger rebuilding sources within a subdir only, even when I have a single top-level target?
ps: working on Linux, have tried this with makefile and ninja targets