QT_SKIP_기본_테스트케이스_DIRS
이 프로퍼티는 Qt 6.9에 도입되었습니다.
참고: 이 속성은 기술 프리뷰에 있으며 향후 릴리스에서 변경될 수 있습니다.
이 속성은 대상에 대한 다음 컴파일 시간 정의를 비활성화합니다:
- QT_TEST케이스_소싱디르
- 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)
QT_TESTCASE_SOURCEDIR
및 QT_TESTCASE_BUILDDIR
매크로는 mytest
을 컴파일할 때 정의되지 않은 상태로 유지됩니다.
이 속성의 기본값은 QT_SKIP_DEFAULT_TESTCASE_DIRS 변수의 값으로 설정됩니다.
© 2025 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.