GrabBag/Module/ZeroMQServer/ZeroMQServer.pro
2026-05-31 00:10:46 +08:00

64 lines
1.5 KiB
Prolog
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

QT -= gui
TEMPLATE = lib
CONFIG += staticlib
DEFINES += VR_MQSERVER_EXPORTS
CONFIG += c++17
# 支持 UTF-8 编码(与其它模块一致)
win32-msvc {
QMAKE_CXXFLAGS += /utf-8
QMAKE_CFLAGS += /utf-8
}
INCLUDEPATH += ./Inc
INCLUDEPATH += ./_Inc
# 项目通用工具(注意:是 Utils/ 不是 Common/
INCLUDEPATH += $$PWD/../../Utils/VrCommon/Inc
INCLUDEPATH += $$PWD/../../Utils/VrUtils/Inc
INCLUDEPATH += $$PWD/../../Utils/VrUtils/ini
HEADERS += \
Inc/IVrZeroMQServer.h \
_Inc/CVrZeroMQServer.h \
_Inc/CVrZeroMQTask.h
SOURCES += \
Src/CVrZeroMQServer.cpp \
Src/CVrZeroMQTask.cpp
# ZeroMQ SDK(仓库内统一放在 SDK/ZeroMQ
INCLUDEPATH += $$PWD/../../SDK/ZeroMQ/include
win32 {
CONFIG(debug, debug|release): {
LIBS += -L$$PWD/../../SDK/ZeroMQ/Windows/x64/Debug -llibzmq-v142-mt-gd-4_3_5
} else {
LIBS += -L$$PWD/../../SDK/ZeroMQ/Windows/x64/Release -llibzmq-v142-mt-4_3_5
}
}
else:unix:!macx {
# ARM aarch64 优先x86_64 兜底
LIBS += -L$$PWD/../../SDK/ZeroMQ/Arm/aarch64 -L$$PWD/../../SDK/ZeroMQ/Linux/x64
LIBS += -lzmq
}
# VrUtils 链接(路径相对于 build 目录,与其它 Module 一致)
win32:CONFIG(debug, debug|release) {
LIBS += -L../../Utils/VrUtils/debug -lVrUtils
}else:win32:CONFIG(release, debug|release){
LIBS += -L../../Utils/VrUtils/release -lVrUtils
}else:unix:!macx {
LIBS += -L../../Utils/VrUtils -lVrUtils
}
unix:!macx {
QMAKE_CXXFLAGS += -fPIC
target.path = /usr/lib
}
!isEmpty(target.path): INSTALLS += target