Logger.pro 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. QT -= gui
  2. TEMPLATE = lib
  3. DEFINES += LOGGER1_LIBRARY
  4. CONFIG += c++11
  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). Please consult the documentation of the
  8. # deprecated API in order to know how to port your code away from it.
  9. DEFINES += QT_DEPRECATED_WARNINGS
  10. # You can also make your code fail to compile if it uses deprecated APIs.
  11. # In order to do so, uncomment the following line.
  12. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  13. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  14. include(log4qt/log4qt.pri)
  15. SOURCES += \
  16. Log.cpp \
  17. LoggerModule.cpp
  18. HEADERS += \
  19. Log.h \
  20. LoggerModule.h
  21. # LoggerModule_global.h
  22. CONFIG(debug, debug|release){
  23. #设置debug配置下编译生成文件的路径
  24. win32: DESTDIR = ../DebugBin #将应用程序放在bin目录下
  25. unix: DESTDIR = ../LinuxDebugBin #将应用程序放在bin目录下
  26. OBJECTS_DIR = ../Output/debug/$$TARGET/obj #将生成的对象文件放在专门的obj文件夹下
  27. MOC_DIR = ../Output/debug/$$TARGET/moc #将QT自动生成的对象放在moc文件夹下
  28. UI_DIR = ../Output/debug/$$TARGET/ui
  29. } else {
  30. #设置release配置下编译生成文件的路径
  31. win32: DESTDIR = ../ReleaseBin #将应用程序放在bin目录下
  32. unix: DESTDIR = ../LinuxReleaseBin #将应用程序放在bin目录下
  33. OBJECTS_DIR = ../Output/release/$$TARGET/obj #将生成的对象文件放在专门的obj文件夹下
  34. MOC_DIR = ../Output/release/$$TARGET/moc #将QT自动生成的对象放在moc文件夹下
  35. UI_DIR = ../Output/release/$$TARGET/ui #设置UI文件目录
  36. }