CMake: Ensure standalone tests are built
When Qt's CI configures standalone tests with
qt-internal-configure-tests the value of QT_FEATURE_qt3d_extra
is not available before actually calling qt_build_tests.
Move the check into each test subdirectory.
Although it's likely the check was too coarse-grained in the first
place and should be changed into something more specific that doesn't
exclude tests that shouldn't be excluded.
Pick-to: 6.2
Change-Id: Ic267b3a9c7f078c60699b709591a3d0ae8bb3018
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Mike Krus <mike.krus@kdab.com>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>