QT -= gui QT += network TEMPLATE = lib CONFIG += staticlib win32-msvc { QMAKE_CXXFLAGS += /utf-8 } # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 # 添加包含路径 INCLUDEPATH += ./TCPClient/Inc \ ./TCPClient/_Inc HEADERS += \ TCPClient/Inc/IVrTCPClient.h \ TCPClient/_Inc/CVrTCPClient.h SOURCES += \ TCPClient/Src/CVrTCPClient.cpp INCLUDEPATH += $$PWD/../VrCommon/Inc INCLUDEPATH += $$PWD/../VrUtils/Inc win32:CONFIG(debug, debug|release) { LIBS += -L../VrNets/debug -lVrUtils }else:win32:CONFIG(release, debug|release){ LIBS += -L../VrNets/release -lVrUtils }else:unix:!macx { # Unix/Linux平台库链接(包括交叉编译) LIBS += -L../VrUtils -lVrUtils # 添加系统库依赖 LIBS += -lpthread } # Default rules for deployment. unix { target.path = $$[QT_INSTALL_PLUGINS]/generic } !isEmpty(target.path): INSTALLS += target