Replace `QT_NO_CREATE_TARGETS` with an automated and scoped logic


Task-number: QTBUG-135233
Change-Id: If77f79aad31adf685104b66caa0e77fe71b0c730
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commit2d1ebc7f22468e37491436da45689c7dbca4f2ff
parent2d8f472e5977f6de7cb4822363a53e585e3fc8c4
authorCristian Le <cristian.le@qt.io>
committerJoerg Bornemann <joerg.bornemann@qt.io>
commit timeTue, 12 May 2026 13:48:25 +0000