6

I wonder what is this file deployment.pri when I create a plain C++ project. Also, is there an option to turn off adding this file with plain C++ project? I ended up removing it but I have to do this every time I create plain C++ project.

CroCo
  • 5,531
  • 9
  • 56
  • 88
  • http://stackoverflow.com/questions/8358627/qt-pro-vs-pri – Richardson Ansong Jul 05 '15 at 05:41
  • You have complete control over templates that come with Qt Creator. You can create your own project template that only includes exactly what you need. Simply grep for deployment.pri inside of the template folder, and you'll find the files for that template. You can copy them and make your own. – Kuba hasn't forgotten Monica Jul 06 '15 at 12:45

1 Answers1

2

By and large, .pro file uses .pri files to separate the project settings (that go directly to qmake) and the included files (sources, headers, etc.).

You can customize the default project templates as you wish:

%QTDIR%/share/qtcreator/templates (for Windows);

/usr/share/qtcreator/templates (for Unix).

For example, the plain C++ template for qmake is stored at %QTDIR%/share/qtcreator/templates/wizards/plaincppapp/qmake/project.pro. Simply edit this file and remove the unwanted lines (include(deployment.pri) in your case).

kefir500
  • 4,184
  • 6
  • 42
  • 48