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


Change-Id: I1ed37bf392000364bc1bf72dd11a3d3deec099d7
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
commitfdfacac08640e168ae7b47b3ee5d855b7f374351
parent6cdfc0f723be9321e98c01ee50d62e1d28eacdc4
authorAlexandru Croitor <alexandru.croitor@qt.io>
committerAlexandru Croitor <alexandru.croitor@qt.io>
commit timeThu, 28 Jul 2022 11:28:38 +0200