QT_SKIP_DEFAULT_TESTCASE_DIRS
Esta propiedad se introdujo en Qt 6.9.
Nota: Esta propiedad se encuentra en fase de previsualización tecnológica y puede cambiar en futuras versiones.
La propiedad desactiva las siguientes definiciones en tiempo de compilación para el objetivo:
- QT_TESTCASE_SOURCEDIR
- QT_TESTCASE_BUILDDIR
Por defecto, estas definiciones apuntan a los directorios fuente y de compilación del objetivo. Dado que sólo se definen para este objetivo, impiden compartir cabeceras precompiladas con la compilación de otros objetivos. Si QT_SKIP_DEFAULT_TESTCASE_DIRS se establece en TRUE estas definiciones se omiten, evitando esta limitación.
qt_add_executable(mytest main.cpp) set_property(TARGET mytest PROPERTY QT_SKIP_DEFAULT_TESTCASE_DIRS TRUE) target_link_libraries(mytest PRIVATE Qt6::Test)
Las macros QT_TESTCASE_SOURCEDIR y QT_TESTCASE_BUILDDIR permanecerán indefinidas al compilar mytest.
El valor de la propiedad por defecto es el valor de la variable QT_SKIP_DEFAULT_TESTCASE_DIRS.
Ver 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.