sample2.pro 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2020-04-07T10:41:15
  4. #
  5. #-------------------------------------------------
  6. QT += core gui
  7. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  8. TARGET = sample2
  9. TEMPLATE = app
  10. # The following define makes your compiler emit warnings if you use
  11. # any feature of Qt which has been marked as deprecated (the exact warnings
  12. # depend on your compiler). Please consult the documentation of the
  13. # deprecated API in order to know how to port your code away from it.
  14. DEFINES += QT_DEPRECATED_WARNINGS
  15. # You can also make your code fail to compile if you use deprecated APIs.
  16. # In order to do so, uncomment the following line.
  17. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  18. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  19. SOURCES += \
  20. main.cpp \
  21. mainwindow.cpp \
  22. ../../include/msgtype/samplemsg.pb.cc
  23. HEADERS += \
  24. mainwindow.h \
  25. ../../include/msgtype/samplemsg.pb.h
  26. FORMS += \
  27. mainwindow.ui
  28. # Default rules for deployment.
  29. qnx: target.path = /tmp/$${TARGET}/bin
  30. else: unix:!android: target.path = /opt/$${TARGET}/bin
  31. !isEmpty(target.path): INSTALLS += target
  32. !include(../../../include/common.pri ) {
  33. error( "Couldn't find the common.pri file!" )
  34. }
  35. LIBS += -lprotobuf
  36. INCLUDEPATH += $$PWD/../../include/msgtype
  37. INCLUDEPATH += $$PWD/../../../include/
  38. LIBS += -L$$PWD/../../../bin/ -lxmlparam -lmodulecomm -livlog -livfault