SKIP_AUTOMOC

From Get docs
Cmake/docs/3.21/prop sf/skip automoc


SKIP_AUTOMOC

New in version 3.8.


Exclude the source file from AUTOMOC processing (for Qt projects).

For broader exclusion control see SKIP_AUTOGEN.

EXAMPLE

# ...
set_property(SOURCE file.h PROPERTY SKIP_AUTOMOC ON)
# ...

© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/prop_sf/SKIP_AUTOMOC.html