Yeah i know i can do this but i wanted to do it in .pro file so the definition is available in the project as well, and i could use it within the code not just in the rc file. so i decide to do it like this
/*pro file*/
RELEASE=3
DEFINES += "RELEASE_RC=$${RELEASE}"
MAJOR=3
DEFINES += "MAJOR_RC=$${MAJOR}"
MINOR=3
DEFINES += "MINOR_RC=$${MINOR}"
PATCH=3
DEFINES += "PATCH_RC=$${PATCH}"
/*rc file*/
#define PRODUCT_VERSION_RC RELEASE_RC,MAJOR_RC,MINOR_RC,PATCH_RC
Thanks for the help
Bookmarks