Skip to content

Instantly share code, notes, and snippets.

@vinipsmaker
Created February 15, 2014 22:26
Show Gist options
  • Save vinipsmaker/9026053 to your computer and use it in GitHub Desktop.
Save vinipsmaker/9026053 to your computer and use it in GitHub Desktop.
new_moc.output = moc_${QMAKE_FILE_BASE}.cpp
new_moc.commands = $$absolute_path(moc, $$[QT_INSTALL_BINS]) -DQT_VERSION_MAJOR=$$QT_MAJOR_VERSION -DQT_VERSION_MINOR=$$QT_MINOR_VERSION -DQT_VERSION_PATCH=$$QT_PATCH_VERSION ${QMAKE_FILE_NAME} -o ${QMAKE_FILE_OUT}
new_moc.input = NEW_HEADERS
new_moc.variable_out = SOURCES
new_moc.target_predeps = true
QMAKE_EXTRA_COMPILERS += new_moc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment