CMake: Add tool wrapper to the dumpcpp call in qt6_target_typelibs
This is required for building Qt with examples or tests that use
qt6_target_typelibs. Otherwise, dumpcpp.exe could not be executed due to
Qt DLLs not being found.
Note that we currently don't have an example or test that uses
qt6_target_typelibs.
Pick-to: 6.6 6.7
Task-number: QTBUG-107663
Change-Id: Id6bb1bd427d94b25cec0bad4a39daa6079dbc9c7
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>