Skip to content

Qt autogen contain

Sebastian Holtermann requested to merge sebholt/cmake:QtAutogen_Contain into master

Cleanups and feature changes for the autogen system.

The most notable changes are

  • Autogen target renamed to <TARGETNAME>_autogen from <TARGETNAME>_automoc
  • moc compilation file generated as <TARGETNAME>_autogen/moc_compilation.cpp
  • <TARGETNAME>_autogen/include/ directory added to the origin target INCLUDE_DIRECTORIES
  • included moc_ files generated in <TARGETNAME>_autogen/include/
  • included ui_ files generated in <TARGETNAME>_autogen/include/
  • Adding CMAKE_CURRENT_BINARY_DIR to INCLUDE_DIRECTORIES in CMakeLists.txt not neccessary anymore
  • All autogen build files get generated below <TARGETNAME>_autogen/
  • Autogen clean now works. Fixed by adding <TARGETNAME>_autogen/ to ADDITIONAL_MAKE_CLEAN_FILES.
  • Change of a .qrc file triggers a reconfiguration and a resouces files watch list update

Closes: #16389 (closed)

Merge request reports