1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
6\ingroup cmake-macros-qtwidgets
11\summary {Creates sources for .ui files.}
13\include cmake-find-package-widgets.qdocinc
18qt_wrap_ui(<VAR> ui_file1 [ui_file2 ...]
22\versionlessCMakeCommandsNote qt6_wrap_ui()
26Creates rules for calling the \l{uic}{User Interface Compiler (uic)} on the given
27\c{.ui} files. For each input file, an header file is generated in the build
28directory. The paths of the generated header files are added to \c{<VAR>}.
30\note This is a low-level macro. See the \l{CMake AUTOUIC Documentation} for a
31more convenient way to process \c{.ui} files with \c{uic}.
35You can set additional \c{OPTIONS} that should be added to the \c{uic} calls.
36You can find possible options in the \l{uic}{uic documentation}.
40\snippet cmake-macros/examples.cmake qt_wrap_ui