Re: [Interest] Qmake: Detecting if QSerialPort is installed

2016-03-10 Thread André Hartmann
Hi Thiago, This looks like the best solution. I already get a message when load() fails*, and I can use it as test expression for conditional compile. Maybe the wiki https://wiki.qt.io/Qt_Serial_Port should be updated, as load() seems the best way to do it. @Kai: QT_CONFIG seems to include

Re: [Interest] Qmake: Detecting if QSerialPort is installed

2016-03-10 Thread Thiago Macieira
On quinta-feira, 10 de março de 2016 09:10:49 PST André Hartmann wrote: > Hi all, > > I'm working on a library that (optionally) depends on QSerialPort. > > This library should also compile on Qt 4, so I did the following in the > project file: > > greaterThan(QT_MAJOR_VERSION, 4) { >

Re: [Interest] Qmake: Detecting if QSerialPort is installed

2016-03-10 Thread Koehne Kai
Subject: Re: [Interest] Qmake: Detecting if QSerialPort is installed > > > > > -Original Message- > > From: Interest [mailto:interest- > > bounces+kai.koehne=theqtcompany@qt-project.org] On Behalf Of > > Andre Hartmann > > Sent: Thursday, March 10

Re: [Interest] Qmake: Detecting if QSerialPort is installed

2016-03-10 Thread Koehne Kai
> -Original Message- > From: Interest [mailto:interest- > bounces+kai.koehne=theqtcompany@qt-project.org] On Behalf Of > Andre Hartmann > Sent: Thursday, March 10, 2016 9:11 AM > To: Interest@qt-project.org > Subject: [Interest] Qmake: Detecting if QSerialPort

[Interest] Qmake: Detecting if QSerialPort is installed

2016-03-10 Thread André Hartmann
Hi all, I'm working on a library that (optionally) depends on QSerialPort. This library should also compile on Qt 4, so I did the following in the project file: greaterThan(QT_MAJOR_VERSION, 4) { QT += serialport } else { CONFIG += serialport } Thats fine so far, but if