CustomCommand: Evaluate generator expressions in DEPENDS.

Rely on evaluation in cmCustomCommandGenerator for the generators.

When tracing target dependencies, depend on the union of dependencies
for all configurations.
Qt4: Fix moc command dependencies for incremental build.

Since commit v2.8.12~327^2 (Qt4Macros: Allow specifying a TARGET
in invokations of macros., 2013-02-26), a parameters file is
populated with moc arguments at generate-time.

When the compile definitions or include directories change, the
parameters file is updated but moc is not re-run in response.

Fix that by making the moc invocation depend on the parameters file.

Reported-At: https://bugreports.qt-project.org/browse/QTBUG-36970
Add cruft already in next but no other topic

A sequence of multiple merges and reverts of a topic in 'next' left
behind some extra content in 'Source/cmLocalUnixMakefileGenerator3.h'.
Add it here and merge to 'next' so we can then revert it.
Merge topic 'remove-auto-merge-cruft-from-next' into next

d7849791 Add cruft already in next but no other topic
Revert "Add cruft already in next but no other topic"

This reverts commit d78497914d99429f9571b09a9f90a66ae8ff2b8c.
Merge topic 'remove-auto-merge-cruft-from-next' into next

a3d76607 Revert "Add cruft already in next but no other topic"
Merge topic 'fix-Qt4-moc-command-depends' into next

4f7fe6c5 Qt4: Fix moc command dependencies for incremental build.
478cdf60 CustomCommand: Evaluate generator expressions in DEPENDS.