이 페이지에서

QML용 CMake 정책

Qt QML은 QML 관련 CMake 명령의 하위 호환성 및 동작을 제어하기 위한 몇 가지 CMake 정책을 제공합니다.

사용 가능한 정책

  • QTP0001 - QML 모듈 버전 관리 동작을 제어합니다.
  • QTP0004 - QML 모듈 출력 디렉토리 구조 제어
  • QTP0005 - QML 유형 등록 동작 제어

정책 설정

qt_policy() 또는 cmake_policy() 을 사용하여 CMakeLists.txt에서 이러한 정책을 설정합니다:

qt_policy(SET QTP0001 NEW)

QML용 CMake 통합qt_add_qml_module도참조하십시오 .

© 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.