Guest User

Untitled

a guest
Jul 9th, 2020
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. QT += quick sql core charts
  2.  
  3. CONFIG += c++17
  4.  
  5. # The following define makes your compiler emit warnings if you use
  6. # any Qt feature that has been marked deprecated (the exact warnings
  7. # depend on your compiler). Refer to the documentation for the
  8. # deprecated API to know how to port your code away from it.
  9. DEFINES += QT_DEPRECATED_WARNINGS
  10.  
  11. # You can also make your code fail to compile if it uses deprecated APIs.
  12. # In order to do so, uncomment the following line.
  13. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  14. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  15.  
  16. SOURCES += \
  17. main.cpp
  18.  
  19. RESOURCES += qml.qrc
  20.  
  21. # Additional import path used to resolve QML modules in Qt Creator's code model
  22. QML_IMPORT_PATH =
  23.  
  24. # Additional import path used to resolve QML modules just for Qt Quick Designer
  25. QML_DESIGNER_IMPORT_PATH =
  26.  
  27. # Default rules for deployment.
  28. qnx: target.path = /tmp/$${TARGET}/bin
  29. else: unix:!android: target.path = /opt/$${TARGET}/bin
  30. !isEmpty(target.path): INSTALLS += target
  31. isEmpty(TARGET_EXT) {
  32. win32 {
  33. TARGET_CUSTOM_EXT = .exe
  34. }
  35. macx {
  36. TARGET_CUSTOM_EXT = .app
  37. }
  38. } else {
  39. TARGET_CUSTOM_EXT = $${TARGET_EXT}
  40. }
  41.  
  42. win32 {
  43. DEPLOY_COMMAND = windeployqt
  44. }
  45. macx {
  46. DEPLOY_COMMAND = macdeployqt
  47. }
  48.  
  49. CONFIG( debug, debug|release ) {
  50. # debug
  51. DEPLOY_TARGET = $$shell_quote($$shell_path($${OUT_PWD}/debug/$${TARGET}$${TARGET_CUSTOM_EXT}))
  52. } else {
  53. # release
  54. DEPLOY_TARGET = $$shell_quote($$shell_path($${OUT_PWD}/release/$${TARGET}$${TARGET_CUSTOM_EXT}))
  55. }
  56.  
  57. message($${DEPLOY_TARGET})
  58. # # Uncomment the following line to help debug the deploy command when running qmake
  59. # warning($${DEPLOY_COMMAND} $${DEPLOY_TARGET})
  60.  
  61. # Use += instead of = if you use multiple QMAKE_POST_LINKs
  62. QMAKE_POST_LINK = $${DEPLOY_COMMAND} "--qmldir C:\Qt\5.14.2\mingw73_64\qml" $${DEPLOY_TARGET}
  63. message($${QMAKE_POST_LINK})
  64. HEADERS += \
  65. db_manager.h \
  66. structs.h \
  67. db_model.h
Advertisement
Add Comment
Please, Sign In to add comment