PDA

View Full Version : Qt5 cmake and QSerialPort



Chris.Burner
19th April 2013, 23:51
Hey guys!

Last year I wrote a simple GUI application with Qt5 and QSerialPort but now its time to learn writing CMake files. :confused:
Unfortunately I haven't found out how I have to write the following lines in a CMakefile.


include($$QTSERIALPORT_PROJECT_ROOT/src/serialport/qt4support/serialport.prf)
CONFIG += serialport

Hope someone can help me out!

Thanks in advance,

Burner

kuzulis
21st April 2013, 16:13
Hi,

Directory /qt4support require only in case on Qt4 building. For Qt4 cmake support of QtSerialPort library you can see this (lord-baskervil.livejournal.com/62738.html)blog. But you should translate it from Russian, and also that fact that information there is already obsolete because QtAddOnSerialPort namespace isn't used any more.