The following works with (and most likely with former versions as well):
QMake version 3.0
Using Qt version 5.1.1
#call the ressource compiler
win32:mkver_rc.target = version_res.o
win32:mkver_rc.depends = version.h
win32:mkver_rc.commands = windres -i version.rc -o version_res.o --include-dir=. -DVERSION_H_INTERN $(DEFINES)
win32:QMAKE_EXTRA_TARGETS += mkver_rc
win32:PRE_TARGETDEPS += version_res.o
LIBS += version_res.o
#call the ressource compiler
win32:mkver_rc.target = version_res.o
win32:mkver_rc.depends = version.h
win32:mkver_rc.commands = windres -i version.rc -o version_res.o --include-dir=. -DVERSION_H_INTERN $(DEFINES)
win32:QMAKE_EXTRA_TARGETS += mkver_rc
win32:PRE_TARGETDEPS += version_res.o
LIBS += version_res.o
To copy to clipboard, switch view to plain text mode
Please check if you should remove the two lines you mentioned above from your project file.
Bookmarks