diff --git a/modules/gui/src/CMakeLists.txt b/modules/gui/src/CMakeLists.txt index 993e776f1c02198e73ab57aa51c0827acf55a56a..c8dc99f72669ed86d28e8cdd768b59ff18b3ad63 100644 --- a/modules/gui/src/CMakeLists.txt +++ b/modules/gui/src/CMakeLists.txt @@ -473,3 +473,11 @@ endif() executable_libexec(NAME gosty SOURCES gosty.cc ${OST_GOSTY_MOC} ${OST_QT_RESOURCE} DEPENDS_ON ost_gui ${LINK}) + +file(GLOB MOC_CXX_FILES moc_*.cxx) + +if (MOC_CXX_FILES) + set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES + "${MOC_CXX_FILES}") +endif() +