QT_ADD_BINARY_RESOURCES

Qt 리소스 파일 목록에서 RCC 파일을 생성합니다.

이 명령은 Qt6 패키지의 Core 컴포넌트에 정의되어 있으며, 다음과 같이 로드할 수 있습니다:

find_package(Qt6 REQUIRED COMPONENTS Core)

이 명령은 Qt 5.10에 도입되었습니다.

개요

qt_add_binary_resources(target file1.qrc [file2.qrc ...]
                        [DESTINATION ...]
                        [OPTIONS ...])

버전 없는 명령을 사용할 수 없는 경우 qt6_add_binary_resources() 을 대신 사용합니다. 이 명령은 이 명령과 동일한 인수 집합을 지원합니다.

설명

Qt 리소스 파일을 바이너리 .rcc 파일로 컴파일하는 사용자 정의 target 를 추가합니다.

인수

DESTINATION 생성된 .rcc 파일의 경로를 설정합니다. 기본값은 ${CMAKE_CURRENT_BINARY_DIR}/${target}.rcc 입니다.

rcc 호출에 추가할 OPTIONS 을 추가로 설정할 수 있습니다. 가능한 옵션은 rcc 문서에서 찾을 수 있습니다.

예제

qt_add_binary_resources(resources project.qrc OPTIONS -no-compress)
add_dependencies(myapp resources)

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