Refactor custom command dependency evaluation
Simplify cmTargetTraceDependencies::CheckCustomCommand
by reusing cmCustomCommandGenerator
to evaluate generator expressions in COMMAND
lines and DEPENDS
.
Also perform other minor cleanups on custom command infrastructure.