AUTOUIC_OPTIONS.rst 977 Bytes
Newer Older
1
2
3
AUTOUIC_OPTIONS
---------------

4
Additional options for ``uic`` when using :prop_tgt:`AUTOUIC`
5

6
7
8
This property holds additional command line options which will be used when
``uic`` is executed during the build via :prop_tgt:`AUTOUIC`, i.e. it is
equivalent to the optional ``OPTIONS`` argument of the
9
:module:`qt4_wrap_ui() <FindQt4>` macro.
10
11
12

By default it is empty.

13
14
15
This property is initialized by the value of the
:variable:`CMAKE_AUTOUIC_OPTIONS` variable if it is set when a target is
created.
16

17
18
The options set on the target may be overridden by :prop_sf:`AUTOUIC_OPTIONS`
set on the ``.ui`` source file.
19

20
This property may use "generator expressions" with the syntax ``$<...>``.
21
22
See the :manual:`cmake-generator-expressions(7)` manual for available
expressions.
23
24
25

See the :manual:`cmake-qt(7)` manual for more information on using CMake
with Qt.
26
27
28
29
30
31
32
33
34

EXAMPLE
^^^^^^^

.. code-block:: cmake

  # ...
  set_property(TARGET tgt PROPERTY AUTOUIC_OPTIONS "--no-protection")
  # ...