46 lines
1.0 KiB
Prolog
46 lines
1.0 KiB
Prolog
|
|
QT += core
|
||
|
|
QT -= gui
|
||
|
|
|
||
|
|
CONFIG += c++17 console
|
||
|
|
CONFIG -= app_bundle
|
||
|
|
|
||
|
|
# Windows平台UTF-8编码支持
|
||
|
|
win32-msvc {
|
||
|
|
QMAKE_CXXFLAGS += /utf-8
|
||
|
|
}
|
||
|
|
|
||
|
|
# 包含路径
|
||
|
|
INCLUDEPATH += $$PWD/../../VrUtils/Inc
|
||
|
|
INCLUDEPATH += $$PWD/../../AppUtils/AppCommon/Inc
|
||
|
|
|
||
|
|
# 源文件
|
||
|
|
SOURCES += \
|
||
|
|
main.cpp
|
||
|
|
|
||
|
|
# Windows平台库链接
|
||
|
|
win32:CONFIG(release, debug|release): {
|
||
|
|
LIBS += -L$$PWD/../../AppUtils/AppCommon/release -lAppCommon
|
||
|
|
LIBS += -L$$PWD/../../VrUtils/release -lVrUtils
|
||
|
|
}
|
||
|
|
else:win32:CONFIG(debug, debug|release): {
|
||
|
|
LIBS += -L$$PWD/../../AppUtils/AppCommon/debug -lAppCommon
|
||
|
|
LIBS += -L$$PWD/../../VrUtils/debug -lVrUtils
|
||
|
|
}
|
||
|
|
else:unix:!macx {
|
||
|
|
LIBS += -L../../AppUtils/AppCommon -lAppCommon
|
||
|
|
LIBS += -L../../VrUtils -lVrUtils
|
||
|
|
}
|
||
|
|
|
||
|
|
# Windows系统库
|
||
|
|
win32 {
|
||
|
|
LIBS += -lAdvapi32
|
||
|
|
}
|
||
|
|
|
||
|
|
# 输出目录
|
||
|
|
DESTDIR = $$PWD/../../bin
|
||
|
|
|
||
|
|
# Default rules for deployment.
|
||
|
|
qnx: target.path = /tmp/$${TARGET}/bin
|
||
|
|
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
||
|
|
!isEmpty(target.path): INSTALLS += target
|