Results 1 to 4 of 4

Thread: qmake rc file define version

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    May 2009
    Posts
    56
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: qmake rc file define version

    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
    Last edited by cafu1007; 30th March 2011 at 11:11.

Similar Threads

  1. How to define a string marco in pro file
    By jevonwang in forum Qt for Embedded and Mobile
    Replies: 5
    Last Post: 6th May 2013, 05:49
  2. Replies: 2
    Last Post: 17th October 2010, 17:20
  3. Replies: 2
    Last Post: 7th October 2010, 02:05
  4. Replies: 1
    Last Post: 3rd December 2009, 23:34
  5. Define compiler in qmake
    By philski in forum Newbie
    Replies: 3
    Last Post: 24th April 2006, 21:47

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.