[Interest] QMake

Till Oliver Knoll till.oliver.knoll at gmail.com
Mon May 8 13:38:29 CEST 2017



> Am 08.05.2017 um 04:12 schrieb Hamish Moffatt <hamish at risingsoftware.com>:
> 
>> On 08/05/17 17:07, Igor Mironchik wrote:
>> Hi,
>> 
>> Is it possible to set in qmake project file to put executable right in "." directory and don't use "debug" and "release" subdirs?
> 
> Which platform? It does that on linux.
> 
> Maybe you can use the DESTDIR variable to control where it's output. (I had trouble with that on Windows or Mac, I can't remember which.)
> 
> The inconsistencies between platforms are annoying.

There are no inconsistencies. Qmake puts all command line executables in ".", unless otherwise specified by DESTDIR, as correctly observed.

When compiling "within Qt Creator" those settings are usually overruled by the (local, per user) project settings, which are initialised the first time you open (or create) a *.pro project file.

Furthermore, when compiling a "normal" application on macOS the executable is - by default - placed in an "app bundle" (which by itself is placed in DESTDIR).

That's no "inconsistency", but "expected platform-specific behaviour".

Refer to

  http://doc.qt.io/qt-5/osx-deployment.html

for more details.

Cheers,
  Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170508/51602772/attachment.html>


More information about the Interest mailing list