QT_SKIP_DEFAULT_TESTCASE_DIRS

Diese Variable wurde in Qt 6.9 eingeführt.

Hinweis: Diese Variable befindet sich in der Technologievorschau und kann sich in zukünftigen Versionen ändern.

Deaktiviert die Testfall-Verzeichnisdefinitionen für die Qt Test Targets.

Steuert den Standardwert der Zieleigenschaft QT_SKIP_DEFAULT_TESTCASE_DIRS.

Hinweis: Unterstützt von CMake Versionen >= 3.23.

set(QT_SKIP_DEFAULT_TESTCASE_DIRS TRUE)
...
qt_add_executable(mytest1 main1.cpp)
target_link_libraries(mytest1 PRIVATE Qt6::Test)
...
qt_add_executable(mytest2 main2.cpp)
target_link_libraries(mytest2 PRIVATE Qt6::Test)

Die Makros QT_TESTCASE_SOURCEDIR und QT_TESTCASE_BUILDDIR bleiben beim Kompilieren von mytest1 und mytest2 undefiniert.

Siehe auch QFINDTESTDATA und QT_SKIP_DEFAULT_TESTCASE_DIRS.

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.