QT_SKIP_DEFAULT_TESTCASE_DIRS

Essa variável foi introduzida no Qt 6.9.

Observação: esta variável está em pré-visualização tecnológica e pode sofrer alterações em versões futuras.

Desativa as definições do diretório de casos de teste para os alvos “ Qt Test ”.

Controla o valor padrão da propriedade do alvo QT_SKIP_DEFAULT_TESTCASE_DIRS.

Observação: Compatível com versões do CMake >= 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)

As macros ` QT_TESTCASE_SOURCEDIR ` e ` QT_TESTCASE_BUILDDIR ` permanecerão indefinidas ao compilar ` mytest1 ` e ` mytest2`.

Veja também QFINDTESTDATA e QT_SKIP_DEFAULT_TESTCASE_DIRS.

© 2026 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.