AUTOUIC_OPTIONS.rst 977 B

12345678910111213141516171819202122232425262728293031323334
  1. AUTOUIC_OPTIONS
  2. ---------------
  3. Additional options for ``uic`` when using :prop_tgt:`AUTOUIC`
  4. This property holds additional command line options which will be used when
  5. ``uic`` is executed during the build via :prop_tgt:`AUTOUIC`, i.e. it is
  6. equivalent to the optional ``OPTIONS`` argument of the
  7. :module:`qt4_wrap_ui() <FindQt4>` macro.
  8. By default it is empty.
  9. This property is initialized by the value of the
  10. :variable:`CMAKE_AUTOUIC_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:`AUTOUIC_OPTIONS`
  13. set on the ``.ui`` source file.
  14. This property may use "generator expressions" with the syntax ``$<...>``.
  15. See the :manual:`cmake-generator-expressions(7)` manual for available
  16. expressions.
  17. See the :manual:`cmake-qt(7)` manual for more information on using CMake
  18. with Qt.
  19. EXAMPLE
  20. ^^^^^^^
  21. .. code-block:: cmake
  22. # ...
  23. set_property(TARGET tgt PROPERTY AUTOUIC_OPTIONS "--no-protection")
  24. # ...