QT_SKIP_DEFAULT_TESTCASE_DIRS

이 속성은 Qt 6.9에서 도입되었습니다.

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

이 속성은 대상에 대해 다음 컴파일 시간 정의를 비활성화합니다:

  • QT_TESTCASE_SOURCEDIR
  • QT_TESTCASE_BUILDDIR

기본적으로 이러한 정의는 대상의 소스 및 빌드 디렉터리를 가리킵니다. 이 정의들은 해당 대상에 대해서만 정의되므로, 다른 대상의 컴파일 시 사전 컴파일된 헤더를 공유하는 것을 방해합니다. ` QT_SKIP_DEFAULT_TESTCASE_DIRS `가 ` TRUE `로 설정된 경우, 이러한 정의가 생략되어 이러한 제한을 피할 수 있습니다.

qt_add_executable(mytest main.cpp)
set_property(TARGET mytest PROPERTY QT_SKIP_DEFAULT_TESTCASE_DIRS TRUE)
target_link_libraries(mytest PRIVATE Qt6::Test)

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

이 속성의 기본값은 QT_SKIP_DEFAULT_TESTCASE_DIRS 변수의 값입니다.

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.