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


Change-Id: I3459287fe6f9b2d257e283d6a85d9269741f5df1
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
commit10354c36cc7833b3b506670a8381851c01ebdc48
parentcc7965c036b5c1f3f9bab915e666294e0e5d49e9
authorAlexandru Croitor <alexandru.croitor@qt.io>
committerAlexandru Croitor <alexandru.croitor@qt.io>
commit timeThu, 28 Jul 2022 11:42:22 +0200