Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is `deployment.pri` that comes with plain C++ project in Qt

Tags:

c++

qt

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.

like image 228
CroCo Avatar asked Jul 05 '15 05:07

CroCo


1 Answers

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).

like image 160
kefir500 Avatar answered Oct 04 '22 22:10

kefir500