tests: guard test helper against batched test builds
When tests are batched (QT_BUILD_TESTS_BATCHED), they would end up in a
single binary and we won't have a target that we could set properties
on. It's not used anywhere, but better to be defensive
Pick-to: 6.12
Change-Id: I3096434a4eb40c0e0c4d466741fb78898c792f36
Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>
Reviewed-by: Nils Petter Skålerud <nils.petter.skalerud@qt.io>
| commit | 48eeca8bcf15016547b971fc73510aeda77273ea |
| parent | eb46bd47037f67009e180b57bf2f5b04e2e44379 |
| author | Tim Blechmann <tim.blechmann@qt.io> |
| committer | Tim Blechmann <tim.blechmann@qt.io> |
| commit time | Thu, 20 Aug 2026 00:48:35 +0000 |