12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- QT -= gui
- TEMPLATE = lib
- DEFINES += LOGGER1_LIBRARY
- CONFIG += c++11
- # The following define makes your compiler emit warnings if you use
- # any Qt feature that has been marked deprecated (the exact warnings
- # depend on your compiler). Please consult the documentation of the
- # deprecated API in order to know how to port your code away from it.
- DEFINES += QT_DEPRECATED_WARNINGS
- # You can also make your code fail to compile if it uses deprecated APIs.
- # In order to do so, uncomment the following line.
- # You can also select to disable deprecated APIs only up to a certain version of Qt.
- #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
- include(log4qt/log4qt.pri)
- SOURCES += \
- Log.cpp \
- LoggerModule.cpp
- HEADERS += \
- Log.h \
- LoggerModule.h
- # LoggerModule_global.h
- CONFIG(debug, debug|release){
- #设置debug配置下编译生成文件的路径
- win32: DESTDIR = ../DebugBin #将应用程序放在bin目录下
- unix: DESTDIR = ../LinuxDebugBin #将应用程序放在bin目录下
- OBJECTS_DIR = ../Output/debug/$$TARGET/obj #将生成的对象文件放在专门的obj文件夹下
- MOC_DIR = ../Output/debug/$$TARGET/moc #将QT自动生成的对象放在moc文件夹下
- UI_DIR = ../Output/debug/$$TARGET/ui
- } else {
- #设置release配置下编译生成文件的路径
- win32: DESTDIR = ../ReleaseBin #将应用程序放在bin目录下
- unix: DESTDIR = ../LinuxReleaseBin #将应用程序放在bin目录下
- OBJECTS_DIR = ../Output/release/$$TARGET/obj #将生成的对象文件放在专门的obj文件夹下
- MOC_DIR = ../Output/release/$$TARGET/moc #将QT自动生成的对象放在moc文件夹下
- UI_DIR = ../Output/release/$$TARGET/ui #设置UI文件目录
- }
|