summaryrefslogtreecommitdiffstats
path: root/Help/prop_tgt/AUTOMOC.rst
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2016-12-02 21:22:50 (GMT)
committerBrad King <brad.king@kitware.com>2016-12-07 13:24:06 (GMT)
commite324d70409b8f56c0d870916f81d8b848233c4e1 (patch)
tree6609c197edc7171c5aa7f4af836fc5790a6d3334 /Help/prop_tgt/AUTOMOC.rst
parentc2211703d35de8fc24e818680c033503b96167ff (diff)
downloadCMake-e324d70409b8f56c0d870916f81d8b848233c4e1.zip
CMake-e324d70409b8f56c0d870916f81d8b848233c4e1.tar.gz
CMake-e324d70409b8f56c0d870916f81d8b848233c4e1.tar.bz2
QtAutogen: AUTOMOC documentation update
Diffstat (limited to 'Help/prop_tgt/AUTOMOC.rst')
-rw-r--r--Help/prop_tgt/AUTOMOC.rst11
1 files changed, 6 insertions, 5 deletions
diff --git a/Help/prop_tgt/AUTOMOC.rst b/Help/prop_tgt/AUTOMOC.rst
index eea57e3..30a39b1 100644
--- a/Help/prop_tgt/AUTOMOC.rst
+++ b/Help/prop_tgt/AUTOMOC.rst
@@ -15,11 +15,12 @@ source files at build time and invoke moc accordingly.
the ``Q_OBJECT`` class declaration is expected in the header, and
``moc`` is run on the header file. A ``moc_foo.cpp`` file will be
generated from the source's header into the
- :variable:`CMAKE_CURRENT_BINARY_DIR` directory. This allows the
- compiler to find the included ``moc_foo.cpp`` file regardless of the
- location the original source. However, if multiple source files
- in different directories do this then their generated moc files would
- collide. In this case a diagnostic will be issued.
+ ``<CMAKE_CURRENT_BINARY_DIR>/<TARGETNAME>_autogen/include``
+ directory which is automatically added to the target's
+ :prop_tgt:`INCLUDE_DIRECTORIES`. This allows the compiler to find the
+ included ``moc_foo.cpp`` file regardless of the location the original source.
+ However, if multiple source files in different directories do this then their
+ generated moc files would collide. In this case a diagnostic will be issued.
* If an ``#include`` statement like ``#include "foo.moc"`` is found,
then a ``Q_OBJECT`` is expected in the current source file and ``moc``