Use qmake to create your makefiles. Build rules for moc will be included and moc will be run when required, so that you will not need to use the moc directly. If you are using a commercial edition, you should have the VS integration package, otherwise see this post.