AUTOUIC.rst 927 B

12345678910111213141516171819202122
  1. AUTOUIC
  2. -------
  3. Should the target be processed with autouic (for Qt projects).
  4. AUTOUIC is a boolean specifying whether CMake will handle
  5. the Qt uic code generator automatically, i.e. without having to use
  6. the QT4_WRAP_UI() or QT5_WRAP_UI() macro. Currently Qt4 and Qt5 are
  7. supported.
  8. When this property is set to TRUE, CMake will scan the source files
  9. at build time and invoke uic accordingly.
  10. If an #include statement like #include "ui_foo.h" is found in
  11. foo.cpp, a foo.ui file is expected next to foo.cpp, and uic is
  12. run on the foo.ui file.
  13. This property is initialized by the value of the :variable:`CMAKE_AUTOUIC`
  14. variable if it is set when a target is created.
  15. Additional command line options for uic can be set via the
  16. :prop_sf:`AUTOUIC_OPTIONS` source file property on the foo.ui file.
  17. The global property :prop_gbl:`AUTOGEN_TARGETS_FOLDER` can be used to group the
  18. autouic targets together in an IDE, e.g. in MSVS.