cmQtAutogen: Allow specifying depends for autogen targets.

Test this by generating files with a custom target, which moc
requires to be present when it is run.
Merge topic 'autogen-depends' into next

1320e07 cmQtAutogen: Allow specifying depends for autogen targets.