- QMake开发技巧之通过rcc工具生成文件
qtPrepareTool(QMAKE_RCC, rcc, _DEP)
QRC_FILES = res.qrc
rccfile.input = QRC_FILES
rccfile.output = $$OUT_PWD/${QMAKE_FILE_BASE}.rcc
rccfile.name = RCC ${QMAKE_FILE_IN}
rccfile.depends += $$QMAKE_RCC_EXE
rccfile.depend_command = $$QMAKE_RCC_DEP -list ${QMAKE_FILE_IN}
rccfile.commands = $$QMAKE_RCC -binary