GrabBag/VrNets/VrTcpServer.pro

51 lines
1.0 KiB
Prolog
Raw Normal View History

QT += core network
TEMPLATE = lib
CONFIG += c++11 staticlib
win32-msvc {
QMAKE_CXXFLAGS += /utf-8
}
# 源文件
SOURCES += \
2025-09-14 14:51:38 +08:00
TCPServer/Src/CYServerTask.cpp \
TCPServer/Src/CYTCPServer.cpp
# 头文件
HEADERS += \
2025-09-14 14:51:38 +08:00
TCPServer/Inc/IYTCPServer.h \
TCPServer/_Inc/CYServerTask.h \
TCPServer/_Inc/CYTCPServer.h
# 包含路径
INCLUDEPATH += \
2025-09-14 14:51:38 +08:00
TCPServer/Inc \
TCPServer/_Inc
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
}
# 安装路径
target.path = $$[QT_INSTALL_LIBS]
INSTALLS += target
# 头文件安装路径
headers.files = $$HEADERS
headers.path = $$[QT_INSTALL_HEADERS]/VrTcpServer
2025-09-14 14:51:38 +08:00
INSTALLS += headers