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


Change-Id: I4477f154510114928a291b7f7713f520142f572c
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
commit8c65a7f8549f60ef529989b1f8447523320c2aa4
parent13a1debfcfa49b12cd69e04434291a450d747711
authorAlexandru Croitor <alexandru.croitor@qt.io>
committerAlexandru Croitor <alexandru.croitor@qt.io>
commit timeWed, 27 Jul 2022 13:48:06 +0200