Qt: *.pro vs *.pri

后端 未结 3 941
猫巷女王i
猫巷女王i 2020-12-02 18:09

What is the difference between *.pro and *.pri configuration files for qmake?

What should go into a *.pro file and what should go into a *

3条回答
  •  被撕碎了的回忆
    2020-12-02 18:48

    A .pro file is what you would run QMake on. A .pri file is included by a .pro file. Other than that there is not much of a difference between the two.

    Example usage could be if you have different builds which need different options. You could put shared information in the .pro, while deferring the options to various .pri files. A bit more information, although admittedly not much more, can be found here.

提交回复
热议问题