ch02-sysinfo.pro 959 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. SOURCES += \
  8. cpuwidget.cpp \
  9. main.cpp \
  10. mainwindow.cpp \
  11. sysinfo.cpp \
  12. sysinfowidget.cpp
  13. HEADERS += \
  14. cpuwidget.h \
  15. mainwindow.h \
  16. sysinfo.h \
  17. sysinfowidget.h
  18. windows {
  19. SOURCES += sysinfowindowsimpl.cpp
  20. HEADERS += sysinfowindowsimpl.h
  21. }
  22. linux {
  23. SOURCES += sysinfolinuximpl.cpp
  24. HEADERS += sysinfolinuximpl.h
  25. }
  26. macx {
  27. SOURCES += sysinfomacimpl.cpp
  28. HEADERS += sysinfomacimpl.h
  29. }
  30. FORMS += \
  31. mainwindow.ui
  32. # Default rules for deployment.
  33. qnx: target.path = /tmp/$${TARGET}/bin
  34. else: unix:!android: target.path = /opt/$${TARGET}/bin
  35. !isEmpty(target.path): INSTALLS += target