SoftNumKeyBoard.pro 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. QT += core gui
  2. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  3. CONFIG += c++11
  4. # The following define makes your compiler emit warnings if you use
  5. # any Qt feature that has been marked deprecated (the exact warnings
  6. # depend on your compiler). Please consult the documentation of the
  7. # deprecated API in order to know how to port your code away from it.
  8. DEFINES += QT_DEPRECATED_WARNINGS
  9. CONFIG(debug, debug|release) {
  10. TARGET = SoftNumKeyBoard_d
  11. } else {
  12. TARGET = SoftNumKeyBoard
  13. DEFINES += QT_NO_DEBUG_OUTPUT
  14. }
  15. DEFINES += _CRT_SECURE_NO_WARNINGS
  16. # You can also make your code fail to compile if it uses deprecated APIs.
  17. # In order to do so, uncomment the following line.
  18. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  19. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  20. SOURCES += \
  21. main.cpp \
  22. SoftNumKeyboardWidget.cpp
  23. HEADERS += \
  24. SoftNumKeyboardWidget.h
  25. # Default rules for deployment.
  26. qnx: target.path = /tmp/$${TARGET}/bin
  27. else: unix:!android: target.path = /opt/$${TARGET}/bin
  28. !isEmpty(target.path): INSTALLS += target
  29. RESOURCES += \
  30. Image.qrc
  31. CONFIG(debug, debug|release){
  32. #设置debug配置下编译生成文件的路径
  33. win32: DESTDIR = ../DebugBin #将应用程序放在bin目录下
  34. unix: DESTDIR = ../LinuxDebugBin #将应用程序放在bin目录下
  35. OBJECTS_DIR = ../Output/debug/$$TARGET/obj #将生成的对象文件放在专门的obj文件夹下
  36. MOC_DIR = ../Output/debug/$$TARGET/moc #将QT自动生成的对象放在moc文件夹下
  37. UI_DIR = ../Output/debug/$$TARGET/ui
  38. } else {
  39. #设置release配置下编译生成文件的路径
  40. win32: DESTDIR = ../ReleaseBin #将应用程序放在bin目录下
  41. unix: DESTDIR = ../LinuxReleaseBin #将应用程序放在bin目录下
  42. OBJECTS_DIR = ../Output/release/$$TARGET/obj #将生成的对象文件放在专门的obj文件夹下
  43. MOC_DIR = ../Output/release/$$TARGET/moc #将QT自动生成的对象放在moc文件夹下
  44. UI_DIR = ../Output/release/$$TARGET/ui #设置UI文件目录
  45. }