I have a C++ project built by CMake.
For each of a list of source files, I want to perform a validation step before that file is used to build a certain target.