Run dumpcpp also when type library is specified by UUID


We should only give a value to the custom command's MAIN_DEPENDENCY if
the type library is a file, not when it is an UUID. If the
MAIN_DEPENDENCY does not exist as a target or a file, the custom command
is not run at build time.

This regression was introduced in
377c95c4a09f7c363c5c609c2bf7907373c39925 when the MAIN_DEPENDENCY was
introduced to reevaluate the custom command if the type library file
changed.

Fixes: QTBUG-126518
Pick-to: 6.8
Change-Id: Idc5346049ce9e5215827a454c3031e5062fb010d
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
commit24ea2efe32d6f78e84e0f2741cea1b542c20f00c
parent2c9aabcd649701832cb12d9036ee7b2331fef021
authorJøger Hansegård <joger.hansegard@qt.io>
committerJøger Hansegård <joger.hansegard@qt.io>
commit timeFri, 21 Jun 2024 09:17:09 +0200