1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
5\page qt-add-binary-resources.html
6\ingroup cmake-commands-qtcore
8\title qt_add_binary_resources
9\keyword qt6_add_binary_resources
11\summary {Creates an RCC file from a list of Qt resource files.}
13\include cmake-find-package-core.qdocinc
15\cmakecommandsince 5.10
20qt_add_binary_resources(target file1.qrc [file2.qrc ...]
25\versionlessCMakeCommandsNote qt6_add_binary_resources()
29Adds a custom \c target that compiles Qt resource files into a binary \c{.rcc}
34\c{DESTINATION} sets the path of the generated \c{.rcc} file. The default is
35\c{${CMAKE_CURRENT_BINARY_DIR}/${target}.rcc}.
37You can set additional \c{OPTIONS} that should be added to the \c{rcc} calls.
38You can find possible options in the \l{rcc}{rcc documentation}.
42\snippet cmake-macros/examples.cmake qt_add_binary_resources