QT_SKIP_DEFAULT_TESTCASE_DIRS

Esta variable se introdujo en Qt 6.9.

Nota: Esta variable se encuentra en fase de vista previa tecnológica y puede sufrir cambios en futuras versiones.

Desactiva las definiciones del directorio de casos de prueba para los objetivos « Qt Test ».

Controla el valor por defecto de la propiedad del objetivo QT_SKIP_DEFAULT_TESTCASE_DIRS.

Nota: Compatible con versiones de 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)

Las macros « QT_TESTCASE_SOURCEDIR » y « QT_TESTCASE_BUILDDIR » permanecerán sin definir al compilar « mytest1 » y « mytest2 ».

Véase también QFINDTESTDATA y 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.