Add this line in your .pro file. You will need to add it only once and it will work every time you qmake your project.