• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1qt_wrap_ui
2----------
3
4.. deprecated:: 3.14
5
6  This command was originally added to support Qt 3 before the
7  :command:`add_custom_command()` command was sufficiently mature.  The
8  :module:`FindQt4` module provides the ``qt4_wrap_ui()`` macro, which
9  should be used instead for Qt 4 projects.  For projects using Qt 5 or
10  later, use the equivalent macro provided by Qt itself (e.g. Qt 5 provides
11  ``qt5_wrap_ui()``).
12
13Manually create Qt user interfaces Wrappers.
14
15.. code-block:: cmake
16
17  qt_wrap_ui(resultingLibraryName HeadersDestName
18             SourcesDestName SourceLists ...)
19
20Produces .h and .cxx files for all the .ui files listed in the
21``SourceLists``.  The .h files will be added to the library using the
22``HeadersDestNamesource`` list.  The .cxx files will be added to the
23library using the ``SourcesDestNamesource`` list.
24
25Consider updating the project to use the :prop_tgt:`AUTOUIC` target property
26instead for a more automated way of invoking the ``uic`` tool.
27