Commit 0669de5d authored by Sebastian Holtermann's avatar Sebastian Holtermann
Browse files

Autogen: Add (CMAKE_)AUTOGEN_ORIGIN_DEPENDS documentation

parent b5e895b5
......@@ -124,6 +124,7 @@ Properties on Targets
/prop_tgt/ARCHIVE_OUTPUT_NAME_CONFIG
/prop_tgt/ARCHIVE_OUTPUT_NAME
/prop_tgt/AUTOGEN_BUILD_DIR
/prop_tgt/AUTOGEN_ORIGIN_DEPENDS
/prop_tgt/AUTOGEN_PARALLEL
/prop_tgt/AUTOGEN_TARGET_DEPENDS
/prop_tgt/AUTOMOC_COMPILER_PREDEFINES
......
......@@ -309,6 +309,7 @@ Variables that Control the Build
/variable/CMAKE_ANDROID_STL_TYPE
/variable/CMAKE_ARCHIVE_OUTPUT_DIRECTORY
/variable/CMAKE_ARCHIVE_OUTPUT_DIRECTORY_CONFIG
/variable/CMAKE_AUTOGEN_ORIGIN_DEPENDS
/variable/CMAKE_AUTOGEN_PARALLEL
/variable/CMAKE_AUTOGEN_VERBOSE
/variable/CMAKE_AUTOMOC
......
AUTOGEN_ORIGIN_DEPENDS
----------------------
Switch for forwarding origin target dependencies to the corresponding
``_autogen`` target.
Targets which have their :prop_tgt:`AUTOMOC` or :prop_tgt:`AUTOUIC` property
``ON`` have a corresponding ``_autogen`` target which is used to auto generate
``moc`` and ``uic`` files. As this ``_autogen`` target is created at
generate-time, it is not possible to define dependencies of it,
such as to create inputs for the ``moc`` or ``uic`` executable.
The dependencies of the ``_autogen`` target are composed from
- the origin target dependencies
(by default enabled via :prop_tgt:`AUTOGEN_ORIGIN_DEPENDS`)
- user defined dependencies from :prop_tgt:`AUTOGEN_TARGET_DEPENDS`
:prop_tgt:`AUTOGEN_ORIGIN_DEPENDS` decides whether the origin target
dependencies should be forwarded to the ``_autogen`` target or not.
By default :prop_tgt:`AUTOGEN_ORIGIN_DEPENDS` is initialized from
:variable:`CMAKE_AUTOGEN_ORIGIN_DEPENDS` which is ``ON`` by default.
See the :manual:`cmake-qt(7)` manual for more information on using CMake
with Qt.
......@@ -9,9 +9,15 @@ Targets which have their :prop_tgt:`AUTOMOC` or :prop_tgt:`AUTOUIC` property
generate-time, it is not possible to define dependencies of it,
such as to create inputs for the ``moc`` or ``uic`` executable.
The :prop_tgt:`AUTOGEN_TARGET_DEPENDS` target property can be set instead to a
list of dependencies of the ``_autogen`` target. Dependencies can be target
names or file names.
The dependencies of the ``_autogen`` target are composed from
- the origin target dependencies
(by default enabled via :prop_tgt:`AUTOGEN_ORIGIN_DEPENDS`)
- user defined dependencies from :prop_tgt:`AUTOGEN_TARGET_DEPENDS`
The :prop_tgt:`AUTOGEN_TARGET_DEPENDS` target property can be set to a
list of additional dependencies for the ``_autogen`` target. Dependencies
can be target names or file names.
See the :manual:`cmake-qt(7)` manual for more information on using CMake
with Qt.
......
CMAKE_AUTOGEN_ORIGIN_DEPENDS
----------------------------
Switch for forwarding origin target dependencies to the corresponding
``_autogen`` targets.
This variable is used to initialize the :prop_tgt:`AUTOGEN_ORIGIN_DEPENDS`
property on all the targets. See that target property for additional
information.
By default :variable:`CMAKE_AUTOGEN_ORIGIN_DEPENDS` is ``ON``.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment