GrabBag/Tools/AuthGenerator/AuthGenerator.pro

43 lines
1.1 KiB
Prolog
Raw Permalink Normal View History

QT += core
# 控制台应用,不需要 GUI
QT -= gui
CONFIG += c++17
CONFIG += console
CONFIG -= app_bundle
TARGET = AuthGenerator
# 包含 AuthModule 头文件
INCLUDEPATH += $$PWD/../../Module/AuthModule/Inc
# 链接 AuthModule VrUtils 静态库
win32 {
CONFIG(release, debug|release) {
LIBS += -L../../Module/AuthModule/release -lAuthModule
LIBS += -L../../VrUtils/release -lVrUtils
} else {
LIBS += -L../../Module/AuthModule/debug -lAuthModule
LIBS += -L../../VrUtils/debug -lVrUtils
}
}
unix:!macx {
# 注意链接顺序AuthModule 依赖 VrUtils,被依赖的库放后面
# 使用 $$OUT_PWD 获取构建目录以支持 shadow build交叉编译
LIBS += -L../../Module/AuthModule -lAuthModule
LIBS += -L../../VrUtils -lVrUtils
# 添加系统库依赖
LIBS += -lpthread
}
SOURCES += \
main.cpp
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target