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


Change-Id: I393161c3adef90f776572c41d03305d2aa3979f8
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
commit4ddbab6f63d581a3cf11786fb3a112dc251a0284
parent1f1a8a145a936e5a7cb48c3fb33693e758159d38
authorAlexandru Croitor <alexandru.croitor@qt.io>
committerAlexandru Croitor <alexandru.croitor@qt.io>
commit timeWed, 27 Jul 2022 13:48:03 +0200