CMake: Remove the dead cmake/tests directory


The tests were gated behind BUILD_CMAKE_TESTING, which defaults to OFF
and is not set anywhere in CI. They have not been runnable for a long
time either: both test projects include QtSetup or QtBuild standalone,
and QtBuild.cmake immediately calls
qt_internal_setup_build_and_global_variables, which is not defined in
that context.

test.cmake, main.cpp and empty.cpp are left over from the moc, uic and
rcc tests that were removed earlier; nothing references them. test.cmake
even fakes QT_MOCSCANNER, which no longer exists.

The two remaining test projects have been ported to
tests/auto/cmake/RunCMake.

Change-Id: Ice486a09e40c6636b463fcc4c0c022c5926fc59f
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commit85df1d22a4b5a64156c154938e1bb5425b71bd85
parent6309ce5217d34f6d1163fe334ce61b0f63c9b236
authorJoerg Bornemann <joerg.bornemann@qt.io>
committerJoerg Bornemann <joerg.bornemann@qt.io>
commit timeWed, 21 Oct 2026 15:32:14 +0000