PDA

View Full Version : QMake how do i configure a .pro file to generate make files with different permissions?



mhogomchungu
18th October 2011, 01:12
qmake seem to default to generating makefiles that end up installing binaries with 755 permissions.

I am creating an suid program and i want one of the executables to be installed with 4755 permission. Just this one executable out of two my projects creates.

What line should i add to .pro file to make this happen? I have looked in qt documentation pages and i did not find any mention of this ability

GreenScape
18th October 2011, 17:53
If you are using QtCreator you can add custom build step(Projects pannel -> build window -> Add Build Step -> Custom Process Step) to do that.

Example:


Command: chmod
Working directory: %{buildDir}
Arguments: 4755 myapp