qt_add_statecharts
.scxml 파일을 C++ 소스 코드로 변환합니다.
이 명령어는 Qt 6.1에서 도입되었습니다.
이 명령은 Qt6 패키지의 Scxml 구성 요소에 정의되어 있습니다. 다음 명령으로 패키지를 불러오십시오:
find_package(Qt6 REQUIRED COMPONENTS Scxml)사용법
qt_add_statecharts(<TARGET> file1.scxml [file2.scxml ...]
[OPTIONS ...])버전 정보가 없는 명령이 비활성화된 경우, 대신 qt6_add_statecharts() 을 사용하십시오. 이 명령은 본 명령과 동일한 인자 집합을 지원합니다.
설명
qt_add_statecharts 매크로는 CMake에 qscxmlc 도구를 호출하여 제공된 .scxml 파일을 읽고, SCXML에 정의된 대로 상태 머신을 구현하는 클래스가 포함된 C++ 소스 및 헤더 파일을 생성하도록 지시합니다.
자세한 지침, 옵션 및 예제는 ‘ Qt SCXML 컴파일러(qscxmlc) 사용’을 참조하십시오 .
© 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.