GrabBag/VrNets/VrTcpClient.pro

48 lines
1.2 KiB
Prolog
Raw Normal View History

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
2026-02-19 00:58:16 +08:00
INCLUDEPATH += $$PWD/../Utils/VrCommon/Inc
INCLUDEPATH += $$PWD/../Utils/VrUtils/Inc
win32:CONFIG(debug, debug|release) {
2026-02-19 00:58:16 +08:00
LIBS += -L../Utils/VrUtils/debug -lVrUtils
}else:win32:CONFIG(release, debug|release){
2026-02-19 00:58:16 +08:00
LIBS += -L../Utils/VrUtils/release -lVrUtils
}else:unix:!macx {
# Unix/Linux平台库链接(包括交叉编译)
2026-02-19 00:58:16 +08:00
LIBS += -L../Utils/VrUtils -lVrUtils
# 添加系统库依赖
LIBS += -lpthread
}
# Default rules for deployment.
unix {
target.path = $$[QT_INSTALL_PLUGINS]/generic
}
!isEmpty(target.path): INSTALLS += target