CMAKE_GLOBAL_AUTOGEN_TARGET

Switch to enable generation of a global autogen target.

When CMAKE_GLOBAL_AUTORCC_TARGET is enabled, a custom target autogen is generated. This target depends on all AUTOMOC and AUTOUIC generated <ORIGIN>_autogen targets in the project. By building the global autogen target, all AUTOMOC and AUTOUIC files in the project will be generated.

The name of the global autogen target can be changed by setting CMAKE_GLOBAL_AUTOGEN_TARGET_NAME .

默认情况下 CMAKE_GLOBAL_AUTOGEN_TARGET is unset.

cmake-qt(7) manual for more information on using CMake with Qt.

注意

<ORIGIN>_autogen targets by default inherit their origin target’s dependencies. This might result in unintended dependency target builds when only <ORIGIN>_autogen targets are built. A solution is to disable AUTOGEN_ORIGIN_DEPENDS on the respective origin targets.

内容表

上一话题

CMAKE_GHS_NO_SOURCE_GROUP_FILE

下一话题

CMAKE_GLOBAL_AUTOGEN_TARGET_NAME

本页