More types of generated files allowed by qt.preprocess

qt.preprocess now allows custom target indexes or generators in addition to custom targets for ui_files, moc_sources and moc_headers.