Autogen: Split creation and setup of custom targets into separate steps

Defer the setup step until after compile features have been finalized on
normal targets.  Later this will help pass the information to Qt tools.

Issue: #24624
4 files changed