QT_SKIP_DEFAULT_TESTCASE_DIRS
Questa proprietà è stata introdotta in Qt 6.9.
Nota: questa proprietà è in fase di anteprima tecnologica e potrebbe subire modifiche nelle versioni future.
La proprietà disabilita le seguenti definizioni in fase di compilazione per il target:
- QT_TESTCASE_SOURCEDIR
- QT_TESTCASE_BUILDDIR
Per impostazione predefinita, queste definizioni puntano alle directory dei sorgenti e di compilazione della destinazione. Poiché sono definite solo per questa destinazione, impediscono la condivisione delle intestazioni precompilate con la compilazione di altre destinazioni. Se l'opzione ` QT_SKIP_DEFAULT_TESTCASE_DIRS ` è impostata su ` TRUE `, queste definizioni vengono omesse, evitando così tale limitazione.
qt_add_executable(mytest main.cpp)
set_property(TARGET mytest PROPERTY QT_SKIP_DEFAULT_TESTCASE_DIRS TRUE)
target_link_libraries(mytest PRIVATE Qt6::Test)Le macro QT_TESTCASE_SOURCEDIR e QT_TESTCASE_BUILDDIR rimarranno indefinite durante la compilazione di mytest.
Il valore predefinito della proprietà è pari al valore della variabile QT_SKIP_DEFAULT_TESTCASE_DIRS.
Vedi anche 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.