CMake: Fix Xcode common dependency issues for shader files


When using the Xcode generator (usually for iOS projects),
make sure to create a custom target that will drive the processing
of shaders. This target will be used as a common dependency for
the resource processing target as well as the ide other_files target.

This should fix errors like

  The custom command generating

    foo.frag.qsb

  is attached to multiple targets:

    foo_other_files
    foo_resources_1

  but none of these is a common dependency of the other(s).  This is
  not allowed by the Xcode "new build system".

This is similar to 5b0e765ab0dddba86662925cb44aeac748a286b7 in
qttools.

Pick-to: 6.2 6.3 6.4
Fixes: QTBUG-103723
Change-Id: I421e5f477c215115bc4b3679efca5e48d7fcd12a
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
commit2e2ad7d9910c97fa4541d14d28b63cda01dc1d4e
parent13b816e9650a8a4e65af83fa957a7de3d8dc57a2
authorAlexandru Croitor <alexandru.croitor@qt.io>
committerAlexandru Croitor <alexandru.croitor@qt.io>
commit timeWed, 15 Jun 2022 14:42:19 +0200