CMake: Don't use PUBLIC_LIBRARIES for tests and test helpers


Change-Id: I5e2551c5572bbb6063290d5c6d0b143cf3cff50e
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
commit98b2daf9e4089b81eb742ffb4086b9fb57f5d3b8
parentf252eca59d871d52b18b3de37e91331d8fee27f8
authorAlexandru Croitor <alexandru.croitor@qt.io>
committerAlexandru Croitor <alexandru.croitor@qt.io>
commit timeThu, 28 Jul 2022 14:43:14 +0200