AUTORCC_OPTIONS.rst 611 Bytes
Newer Older
1 2 3
AUTORCC_OPTIONS
---------------

4
Additional options for ``rcc`` when using :prop_tgt:`AUTORCC`
5 6

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

By default it is empty.

12 13 14 15 16 17 18 19 20 21 22
The options set on the ``.qrc`` source file may override
:prop_tgt:`AUTORCC_OPTIONS` set on the target.

EXAMPLE
^^^^^^^

.. code-block:: cmake

  # ...
  set_property(SOURCE resources.qrc PROPERTY AUTORCC_OPTIONS "--compress;9")
  # ...