AUTORCC_OPTIONS.rst 823 B

123456789101112131415161718192021222324252627282930
  1. AUTORCC_OPTIONS
  2. ---------------
  3. Additional options for ``rcc`` when using :prop_tgt:`AUTORCC`
  4. This property holds additional command line options which will be used
  5. when ``rcc`` is executed during the build via :prop_tgt:`AUTORCC`,
  6. i.e. it is equivalent to the optional ``OPTIONS`` argument of the
  7. :module:`qt4_add_resources() <FindQt4>` macro.
  8. By default it is empty.
  9. This property is initialized by the value of the
  10. :variable:`CMAKE_AUTORCC_OPTIONS` variable if it is set when a target is
  11. created.
  12. The options set on the target may be overridden by :prop_sf:`AUTORCC_OPTIONS`
  13. set on the ``.qrc`` source file.
  14. See the :manual:`cmake-qt(7)` manual for more information on using CMake
  15. with Qt.
  16. EXAMPLE
  17. ^^^^^^^
  18. .. code-block:: cmake
  19. # ...
  20. set_property(TARGET tgt PROPERTY AUTORCC_OPTIONS "--compress;9")
  21. # ...