ch02-sysinfo.pro 787 B

12345678910111213141516171819202122232425262728293031323334353637
  1. QT += core gui
  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. main.cpp \
  9. mainwindow.cpp \
  10. sysinfo.cpp
  11. HEADERS += \
  12. mainwindow.h \
  13. sysinfo.h
  14. windows {
  15. SOURCES += sysinfowindowsimpl.cpp
  16. HEADERS += sysinfowindowsimpl.h
  17. }
  18. macx {
  19. SOURCES += sysinfomacimpl.cpp
  20. HEADERS += sysinfomacimpl.h
  21. }
  22. FORMS += \
  23. mainwindow.ui
  24. # Default rules for deployment.
  25. qnx: target.path = /tmp/$${TARGET}/bin
  26. else: unix:!android: target.path = /opt/$${TARGET}/bin
  27. !isEmpty(target.path): INSTALLS += target