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


Change-Id: I4e4d5b6763bed76f37fc263145c5d09f848cf91f
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
commit68c046db79363706d61221d952529589a48bb0a3
parentdd6325b4cba118a2da07cb55a295d72142526b84
authorAlexandru Croitor <alexandru.croitor@qt.io>
committerAlexandru Croitor <alexandru.croitor@qt.io>
commit timeThu, 28 Jul 2022 11:27:38 +0200