QT_SKIP_DEFAULT_TESTCASE_DIRS

이 변수는 Qt 6.9에서 도입되었습니다.

참고: 이 변수는 기술 미리보기 단계에 있으며 향후 릴리스에서 변경될 수 있습니다.

Qt Test 타깃에 대한 테스트 케이스 디렉터리 정의를 비활성화합니다.

QT_SKIP_DEFAULT_TESTCASE_DIRS 타깃 속성의 기본값을 제어합니다.

참고: 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)

mytest1 및 mytest2 를 컴파일할 때 QT_TESTCASE_SOURCEDIR 및 QT_TESTCASE_BUILDDIR 매크로는 정의되지 않은 상태로 유지됩니다.

QFINDTESTDATA 및 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.