I have directory aaa and aaa/bb. I want CMake to create the moc_compilation.o file only for aaa/*.cxx files, but it scans recursively aaa/bb/*.cxx files also. How can I disable the recursive scan for automoc?
How to switch off CMake automoc for subdirectories?
797 views Asked by Gayane At
1
You can use the
SKIP_AUTOMOCsource file property to skip automoc processing for one file, or an entire group of files. This works for header files as well: