cmake support for dyndep capability of ninja for own targets

Hi,

Please have a look at:
generate files with ninja and cmake

We need to generate content from apriori unknown number of files and the output of the generator is also arbitrary.
We solved this by calling “cmake --build target” in ninja run. Unfortunately from ninja 1.10.0 on the ninja -t restat call breaks our build.
So we think that using dyndep files would be perfect for our needs, but there is no support in cmake of using this.

Best regards Frank