The following CMake variables are defined when Qt6::Test is loaded, for instance with
find_package(Qt6 REQUIRED COMPONENTS Test)
另請參閱 CMake 變量參考 .
QT_SKIP_DEFAULT_TESTCASE_DIRS
CMake 目標特性 升級自 Qt 5