diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-08-18 11:58:14 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-08-18 11:58:14 (GMT) |
commit | 7529d84facc8c5b3ddfc916c20c5998d6aa9acaf (patch) | |
tree | c5189919b902e809a0dcbbc21878912c0db11777 /Help/variable/CMAKE_AUTOMOC_MACRO_NAMES.rst | |
parent | 05891d8f774cc2ac3fea44f6f320dcdc2e1d95e2 (diff) | |
download | CMake-7529d84facc8c5b3ddfc916c20c5998d6aa9acaf.zip CMake-7529d84facc8c5b3ddfc916c20c5998d6aa9acaf.tar.gz CMake-7529d84facc8c5b3ddfc916c20c5998d6aa9acaf.tar.bz2 |
Autogen: Add documentation for AUTOMOC_MACRO_NAMES
Diffstat (limited to 'Help/variable/CMAKE_AUTOMOC_MACRO_NAMES.rst')
-rw-r--r-- | Help/variable/CMAKE_AUTOMOC_MACRO_NAMES.rst | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_AUTOMOC_MACRO_NAMES.rst b/Help/variable/CMAKE_AUTOMOC_MACRO_NAMES.rst new file mode 100644 index 0000000..7ed3445 --- /dev/null +++ b/Help/variable/CMAKE_AUTOMOC_MACRO_NAMES.rst @@ -0,0 +1,19 @@ +CMAKE_AUTOMOC_MACRO_NAMES +---------------------------- + +Additional macro names used by :variable:`CMAKE_AUTOMOC` +to determine if a C++ file needs to be processed by ``moc``. + +This variable is used to initialize the :prop_tgt:`AUTOMOC_MACRO_NAMES` +property on all the targets. See that target property for additional +information. + +By default it is empty. + +Example +------- +Let CMake know that source files that contain ``CUSTOM_MACRO`` must be ``moc`` +processed as well:: + + set(CMAKE_AUTOMOC ON) + set(CMAKE_AUTOMOC_MACRO_NAMES "CUSTOM_MACRO") |