CMAKE_GLOBAL_AUTOGEN_TARGET.rst 735 B

123456789101112131415161718
  1. CMAKE_GLOBAL_AUTOGEN_TARGET
  2. ---------------------------
  3. Switch to enable generation of a global ``autogen`` target.
  4. When :variable:`CMAKE_GLOBAL_AUTORCC_TARGET` is enabled, a custom target
  5. ``autogen`` is generated. This target depends on all :prop_tgt:`AUTOMOC` and
  6. :prop_tgt:`AUTOUIC` generated ``<ORIGIN>_autogen`` targets in the project.
  7. By building the global ``autogen`` target, all :prop_tgt:`AUTOMOC` and
  8. :prop_tgt:`AUTOUIC` files in the project will be generated.
  9. The name of the global ``autogen`` target can be changed by setting
  10. :variable:`CMAKE_GLOBAL_AUTOGEN_TARGET_NAME`.
  11. By default :variable:`CMAKE_GLOBAL_AUTOGEN_TARGET` is unset.
  12. See the :manual:`cmake-qt(7)` manual for more information on using CMake
  13. with Qt.