AUTORCC.rst 932 B

1234567891011121314151617181920212223
  1. AUTORCC
  2. -------
  3. Should the target be processed with autorcc (for Qt projects).
  4. ``AUTORCC`` is a boolean specifying whether CMake will handle
  5. the Qt ``rcc`` code generator automatically, i.e. without having to use
  6. the :module:`QT4_ADD_RESOURCES() <FindQt4>` or ``QT5_ADD_RESOURCES()``
  7. macro. Currently Qt4 and Qt5 are supported.
  8. When this property is ``ON``, CMake will handle ``.qrc`` files added
  9. as target sources at build time and invoke ``rcc`` accordingly.
  10. This property is initialized by the value of the :variable:`CMAKE_AUTORCC`
  11. variable if it is set when a target is created.
  12. Additional command line options for rcc can be set via the
  13. :prop_sf:`AUTORCC_OPTIONS` source file property on the ``.qrc`` file.
  14. The global property :prop_gbl:`AUTOGEN_TARGETS_FOLDER` can be used to group
  15. the autorcc targets together in an IDE, e.g. in MSVS.
  16. See the :manual:`cmake-qt(7)` manual for more information on using CMake
  17. with Qt.