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


Change-Id: I467f50198ac9453e36533d958dd499fc9358562d
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
commit5ebdc5906c4c436e0a69fa4ef3aed14b1467f50e
parentf4b6e475d458ca2419d98274fca6681989f0bfae
authorAlexandru Croitor <alexandru.croitor@qt.io>
committerAlexandru Croitor <alexandru.croitor@qt.io>
commit timeThu, 28 Jul 2022 11:28:30 +0200