我已经调用了qt4_wrap_cpp(moc_outfiles ${moc_header})并且我希望将该调用 ( moc_outfiles) 的结果放在一个名为GeneratedFiles/Debug.
到目前为止,我尝试制作自己的自定义方法,但由于解析错误而失败Parse error.  Expected "(", got quoted argument with text "${it}".
FOREACH (it ${moc_headers})
    QT_MOC_EXECUTABLE ${it} -o ./GeneratedFiles/Debug/moc_"${it}"
ENDFOREACH(it)