QT_SKIP_DEFAULT_TESTCASE_DIRS
Esta propiedad se introdujo en Qt 6.9.
Nota: Esta propiedad se encuentra en fase de vista previa tecnológica y puede sufrir cambios en futuras versiones.
La propiedad desactiva las siguientes definiciones en tiempo de compilación para el destino:
- QT_TESTCASE_SOURCEDIR
- QT_TESTCASE_BUILDDIR
Por defecto, estas definiciones apuntan a los directorios de código fuente y de compilación del objetivo. Dado que solo se definen para este objetivo, impiden compartir encabezados precompilados con la compilación de otros objetivos. Si se establece « QT_SKIP_DEFAULT_TESTCASE_DIRS » en « TRUE », estas definiciones se omiten, lo que evita 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 sin definir al compilar mytest.
El valor predeterminado de la propiedad es el valor de la variable QT_SKIP_DEFAULT_TESTCASE_DIRS.
Véanse 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.