From 7935f4dec81aa8210fa805d6b484ef04e6ef6056 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sun, 2 Feb 2014 11:34:04 +0100 Subject: [PATCH] Help: Note that AUTOMOC consumes the defines and includes from targets. --- Help/manual/cmake-qt.7.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Help/manual/cmake-qt.7.rst b/Help/manual/cmake-qt.7.rst index a318afbee..b2270f3c8 100644 --- a/Help/manual/cmake-qt.7.rst +++ b/Help/manual/cmake-qt.7.rst @@ -69,6 +69,10 @@ included by the user in the C++ implementation file with a preprocessor ``#include``. If it is not so included, it will be added to a separate file which is compiled into the target. +The ``moc`` command line will consume the :prop_tgt:`COMPILE_DEFINITIONS` and +:prop_tgt:`INCLUDE_DIRECTORIES` target properties from the target it is being +invoked for, and for the appropriate build configuration. + Generated ``moc_*.cpp`` and ``*.moc`` files are placed in the build directory so it is convenient to set the :variable:`CMAKE_INCLUDE_CURRENT_DIR` variable. The :prop_tgt:`AUTOMOC` target property may be pre-set for all