Results 1 to 2 of 2

Thread: Qt5 cmake and QSerialPort

  1. #1
    Join Date
    Jul 2012
    Location
    Vienna
    Posts
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Question Qt5 cmake and QSerialPort

    Hey guys!

    Last year I wrote a simple GUI application with Qt5 and QSerialPort but now its time to learn writing CMake files.
    Unfortunately I haven't found out how I have to write the following lines in a CMakefile.
    Qt Code:
    1. include($$QTSERIALPORT_PROJECT_ROOT/src/serialport/qt4support/serialport.prf)
    2. CONFIG += serialport
    To copy to clipboard, switch view to plain text mode 
    Hope someone can help me out!

    Thanks in advance,

    Burner

  2. #2
    Join Date
    Jan 2009
    Location
    Russia
    Posts
    309
    Thanks
    2
    Thanked 43 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt5 cmake and QSerialPort

    Hi,

    Directory /qt4support require only in case on Qt4 building. For Qt4 cmake support of QtSerialPort library you can see this 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.

Similar Threads

  1. inbiza-labs qserialport on arm platform
    By sean_h in forum Newbie
    Replies: 0
    Last Post: 28th March 2012, 11:45
  2. Cmake
    By R.CH in forum Qt Programming
    Replies: 1
    Last Post: 7th October 2010, 17:06
  3. Replies: 1
    Last Post: 16th June 2009, 09:09
  4. using moc with cmake
    By Isaac in forum Newbie
    Replies: 2
    Last Post: 29th May 2008, 03:10
  5. CMake and pthreads
    By Matt Smith in forum General Discussion
    Replies: 5
    Last Post: 3rd September 2006, 20:42

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.