Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qt_add_binary_resources.qdoc
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5\page qt-add-binary-resources.html
6\ingroup cmake-commands-qtcore
7
8\title qt_add_binary_resources
9\keyword qt6_add_binary_resources
10
11\summary {Creates an RCC file from a list of Qt resource files.}
12
13\include cmake-find-package-core.qdocinc
14
15\cmakecommandsince 5.10
16
17\section1 Synopsis
18
19\badcode
20qt_add_binary_resources(target file1.qrc [file2.qrc ...]
21 [DESTINATION ...]
22 [OPTIONS ...])
23\endcode
24
25\versionlessCMakeCommandsNote qt6_add_binary_resources()
26
27\section1 Description
28
29Adds a custom \c target that compiles Qt resource files into a binary \c{.rcc}
30file.
31
32\section1 Arguments
33
34\c{DESTINATION} sets the path of the generated \c{.rcc} file. The default is
35\c{${CMAKE_CURRENT_BINARY_DIR}/${target}.rcc}.
36
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}.
39
40\section1 Examples
41
42\snippet cmake-macros/examples.cmake qt_add_binary_resources
43*/