qt_qml_출력_디렉토리
qt6_add_qml_module() 명령은 QML 모듈의 qmldir
파일, typeinfo 파일 및 플러그인 라이브러리가 생성될 위치를 지정하는 OUTPUT_DIRECTORY
인수를 받습니다. 이 인수가 사용되지 않으면 기본값은 QT_QML_OUTPUT_DIRECTORY
변수가 설정되어 있는 경우 이를 기반으로 합니다. QT_QML_OUTPUT_DIRECTORY
가 설정되지 않은 경우 기본값은 백업 대상 유형에 따라 달라집니다(자세한 내용은 OUTPUT_DIRECTORY 문서 참조).
QT_QML_OUTPUT_DIRECTORY
을 설정하면 기본 출력 디렉터리는 QT_QML_OUTPUT_DIRECTORY
에 QML 모듈의 대상 경로 (모듈 URI 기반)를 추가하여 형성됩니다. QT_QML_OUTPUT_DIRECTORY
도 qmllint
및 qmlcachegen
툴링 대상의 가져오기 경로에 추가되어 동일한 기본 위치에서 다른 QML 모듈을 찾을 수 있습니다. 이렇게 하면 프로젝트에서 QML 모듈의 URI 구조와 정확히 일치하지 않는 소스 디렉터리 구조를 사용하거나 공통 기준점 아래에서 QML 모듈 세트를 병합할 수 있습니다.
© 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.