cmake/Help/prop_tgt/AUTOUIC_OPTIONS.rst

33 lines
982 B
ReStructuredText
Raw Normal View History

2014-08-03 19:52:23 +02:00
AUTOUIC_OPTIONS
---------------
2017-07-20 19:35:53 +02:00
Additional options for ``uic`` when using :prop_tgt:`AUTOUIC`
2014-08-03 19:52:23 +02:00
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
:module:`qt4_wrap_ui() <FindQt4>` macro.
This property is initialized by the value of the
:variable:`CMAKE_AUTOUIC_OPTIONS` variable if it is set when a target is
2020-08-30 11:54:41 +02:00
created, or an empty string otherwise.
2014-08-03 19:52:23 +02:00
The options set on the target may be overridden by :prop_sf:`AUTOUIC_OPTIONS`
set on the ``.ui`` source file.
This property may use "generator expressions" with the syntax ``$<...>``.
See the :manual:`cmake-generator-expressions(7)` manual for available
expressions.
See the :manual:`cmake-qt(7)` manual for more information on using CMake
with Qt.
2018-01-26 17:06:56 +01:00
EXAMPLE
^^^^^^^
.. code-block:: cmake
# ...
set_property(TARGET tgt PROPERTY AUTOUIC_OPTIONS "--no-protection")
# ...