Consider specifying the CONFIGURE_DEPENDS
flag when using cmake's file(GLOB|GLOB_RECURSE ...)
, to automatically reconfigure the build when files are added or removed.
https://cmake.org/cmake/help/latest/command/file.html#glob
Particularly for the documentation example, since it's using a discouraged practice.