AUTOGEN_ORIGIN_DEPENDS.rst 1.1 KB

1234567891011121314151617181920212223242526
  1. AUTOGEN_ORIGIN_DEPENDS
  2. ----------------------
  3. Switch for forwarding origin target dependencies to the corresponding
  4. ``_autogen`` target.
  5. Targets which have their :prop_tgt:`AUTOMOC` or :prop_tgt:`AUTOUIC` property
  6. ``ON`` have a corresponding ``_autogen`` target which is used to auto generate
  7. ``moc`` and ``uic`` files. As this ``_autogen`` target is created at
  8. generate-time, it is not possible to define dependencies of it,
  9. such as to create inputs for the ``moc`` or ``uic`` executable.
  10. The dependencies of the ``_autogen`` target are composed from
  11. - the origin target dependencies
  12. (by default enabled via :prop_tgt:`AUTOGEN_ORIGIN_DEPENDS`)
  13. - user defined dependencies from :prop_tgt:`AUTOGEN_TARGET_DEPENDS`
  14. :prop_tgt:`AUTOGEN_ORIGIN_DEPENDS` decides whether the origin target
  15. dependencies should be forwarded to the ``_autogen`` target or not.
  16. By default :prop_tgt:`AUTOGEN_ORIGIN_DEPENDS` is initialized from
  17. :variable:`CMAKE_AUTOGEN_ORIGIN_DEPENDS` which is ``ON`` by default.
  18. See the :manual:`cmake-qt(7)` manual for more information on using CMake
  19. with Qt.