Typica is a free program for professional coffee roasters. https://typica.us
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

common.pri 806B

1234567891011121314151617
  1. infile(config.pri, QEXTSERIALPORT_LIBRARY, yes): CONFIG += qextserialport-library
  2. qextserialport-library{
  3. infile(config.pri, QEXTSERIALPORT_STATIC, yes): CONFIG += qextserialport-static
  4. }
  5. # Though maybe you have been fimiliar with "TEMPLATE += fakelib" and "TEMPLATE -= fakelib",
  6. # but it don't work when you using "qmake -tp XXX". So I use another variable Here.
  7. SAVE_TEMPLATE = $$TEMPLATE
  8. TEMPLATE = fakelib
  9. contains(QT_VERSION, ^5\\..*\\..*) {
  10. #different name for Qt4 and Qt5
  11. QEXTSERIALPORT_LIBNAME = $$qtLibraryTarget(QtExtSerialPort-1.2)
  12. } else {
  13. QEXTSERIALPORT_LIBNAME = $$qtLibraryTarget(qextserialport-1.2)
  14. }
  15. TEMPLATE = $$SAVE_TEMPLATE
  16. QEXTSERIALPORT_LIBDIR = $$PWD/lib
  17. unix:qextserialport-library:!qextserialport-buildlib:QMAKE_RPATHDIR += $$QEXTSERIALPORT_LIBDIR