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


Change-Id: I1a8100d2b989c72e3a5c8ee0db8537fac2503dd7
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
commit35f917cb2a54214ff19eb9c492d597c21835a07c
parentdd80ba599e9bbaddbd911185a2acd266434336c7
authorAlexandru Croitor <alexandru.croitor@qt.io>
committerAlexandru Croitor <alexandru.croitor@qt.io>
commit timeThu, 28 Jul 2022 14:44:26 +0200