CMake: Fix examples built as external projects


Usage of a private module needs a respective find_package call now.

Change-Id: I4a9184e34601ae35531176f8f77a399f499f236e
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commitae294b20f0d9e50134627835e4a70a91f1afd0b2
parentf6cdb37f6df1bb52632cd18f8a9674dd6eb72ca7
authorJoerg Bornemann <joerg.bornemann@qt.io>
committerJoerg Bornemann <joerg.bornemann@qt.io>
commit timeThu, 30 Jan 2025 13:58:55 +0100