ch02-sysinfo.pro 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. QT += core gui charts
  2. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  3. CONFIG += c++17
  4. # You can make your code fail to compile if it uses deprecated APIs.
  5. # In order to do so, uncomment the following line.
  6. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  7. COMPILE_MSG = "Compilling on"
  8. SOURCES += \
  9. MemoryWidget.cpp \
  10. cpuwidget.cpp \
  11. main.cpp \
  12. mainwindow.cpp \
  13. sysinfo.cpp \
  14. sysinfowidget.cpp
  15. HEADERS += \
  16. MemoryWidget.h \
  17. cpuwidget.h \
  18. mainwindow.h \
  19. sysinfo.h \
  20. sysinfowidget.h
  21. windows {
  22. SOURCES += sysinfowindowsimpl.cpp
  23. HEADERS += sysinfowindowsimpl.h
  24. message($$COMPILE_MSG window)
  25. }
  26. linux {
  27. SOURCES += sysinfolinuximpl.cpp
  28. HEADERS += sysinfolinuximpl.h
  29. message($$COMPILE_MSG linux)
  30. }
  31. macx {
  32. SOURCES += sysinfomacimpl.cpp
  33. HEADERS += sysinfomacimpl.h
  34. message($$COMPILE_MSG mac)
  35. }
  36. FORMS += \
  37. mainwindow.ui
  38. # Default rules for deployment.
  39. qnx: target.path = /tmp/$${TARGET}/bin
  40. else: unix:!android: target.path = /opt/$${TARGET}/bin
  41. !isEmpty(target.path): INSTALLS += target