Skip to content

Autogen: Enable per-config include directories and source wrappers

Sebastian Holtermann requested to merge sebholt/cmake:autogen-configs into master

AUTOMOC

For multi configuration generators:

  • Use per-config <AUTOGEN_BUILD_DIR>/include_<CONFIG> include directories
  • Generate the moc_predefs.h file with a _<CONFIG> suffix since it is generated using configuration specific -D definitions.

AUTOUIC

For multi configuration generators:

  • Use per-config <AUTOGEN_BUILD_DIR>/include_<CONFIG> include directories

AUTORCC

For multi configuration generators:

  • Remove per-config qrc_FOO_$<CONFIG>.cpp source file support. Instead use a single source file qrc_FOO.cpp which is a wrapper that includes the actual rcc generated qrc_FOO_CONFIG.cpp file. This way, after a repeated configuration change, only the wrapper file qrc_FOO.cpp must be regenerated to include the appropriate qrc_FOO_CONFIG.cpp file.

Merge request reports