make it possible to moc .mm files

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2016-07-25 15:25:50 +03:00
parent b557a278e9
commit 62b763b4f4
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ macro(KATIE_RESOURCES RESOURCES)
MAIN_DEPENDENCY ${resource}
)
set_property(SOURCE ${resource} APPEND PROPERTY OBJECT_DEPENDS ${rscout})
elseif("${rscext}" MATCHES "(.h|.cpp)")
elseif("${rscext}" MATCHES "(.h|.cpp|.mm)")
file(READ "${resource}" rsccontent)
# this can be simpler if continue() was supported by old CMake versions
if("${rsccontent}" MATCHES "(Q_OBJECT|Q_OBJECT_FAKE|Q_GADGET)")

View file

@ -185,6 +185,6 @@ QAuServer* qt_new_audio_server()
QT_END_NAMESPACE
#include "qsound_mac.moc"
#include "moc_qsound_mac.mm"
#endif // QT_NO_SOUND