How do I add a custom Info.plist to my Mac application with qmake?

You can set your own Info.plist by setting the QMAKE_INFO_PLIST variable to your Info.plist file. qmake will add a rule in the Makefile it generates to copy this over. If you don’t specify this, qmake provides a generic Info.plist file.

  1. QMAKE_INFO_PLIST = MyInfo.plist   # qmake will copy this file to MyApp.app/Contents/Info.plist

1 comment

June 5, 2013

Picture of toby520 toby520

Lab Rat

It’s very good way to set file association function by this way,so you must delete the generic Info.plist file first,and set QMAKE_INFO_PLIST = MyInfo.plist into .pro file,and you built your project

Write a comment

Sorry, you must be logged in to post a comment.