2026-03-01 18:11:32 +08:00
|
|
|
QT += core gui network
|
|
|
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
|
|
|
|
|
CONFIG += c++17
|
|
|
|
|
|
2026-07-13 18:50:49 +08:00
|
|
|
# 寮哄埗浣跨敤UTF-8缂栫爜
|
2026-03-01 18:11:32 +08:00
|
|
|
QMAKE_CXXFLAGS += /utf-8
|
|
|
|
|
|
2026-07-13 18:50:49 +08:00
|
|
|
# 瀹氫箟鐗堟湰鍙?
|
2026-03-01 18:11:32 +08:00
|
|
|
DEFINES += APP_VERSION=\\\"1.0.0\\\"
|
|
|
|
|
|
2026-07-13 18:50:49 +08:00
|
|
|
# 瀹氫箟闈欐€佸簱妯″紡锛堜笉瀵煎叆锛?
|
2026-03-01 18:11:32 +08:00
|
|
|
DEFINES += FAIRINO_WRAPPER_LIB
|
|
|
|
|
|
2026-07-13 18:50:49 +08:00
|
|
|
# 杈撳嚭鐩綍閰嶇疆锛堢敱涓婚」鐩喅瀹氾級
|
2026-03-01 18:11:32 +08:00
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
|
TARGET = ControlAppd
|
|
|
|
|
} else {
|
|
|
|
|
TARGET = ControlApp
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
|
main.cpp \
|
|
|
|
|
mainwindow.cpp \
|
|
|
|
|
DemoControlPresenter.cpp \
|
|
|
|
|
WorkflowWidget.cpp \
|
|
|
|
|
DialogConfig.cpp
|
|
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
|
mainwindow.h \
|
|
|
|
|
DemoControlPresenter.h \
|
|
|
|
|
WorkflowWidget.h \
|
|
|
|
|
DialogConfig.h \
|
|
|
|
|
Version.h
|
|
|
|
|
|
|
|
|
|
FORMS += \
|
|
|
|
|
mainwindow.ui \
|
|
|
|
|
dialogconfig.ui
|
|
|
|
|
|
2026-07-13 18:50:49 +08:00
|
|
|
# 鍖呭惈璺緞
|
2026-03-01 18:11:32 +08:00
|
|
|
INCLUDEPATH += \
|
|
|
|
|
$$PWD/../../AppUtils/AppCommon/Inc \
|
|
|
|
|
$$PWD/../../AppUtils/UICommon/Inc \
|
2026-07-14 17:14:55 +08:00
|
|
|
$$PWD/../../Nets/ModbusTCPClient/Inc \
|
2026-03-01 18:11:32 +08:00
|
|
|
$$PWD/../../Robot/FairinoWrapper \
|
|
|
|
|
$$PWD/../../SDK/Robot/fairino-cpp-sdk/libfairino/src/include/Robot-CN \
|
|
|
|
|
$$PWD/../../SDK/Robot/fairino-cpp-sdk/libfairino/src/include \
|
|
|
|
|
$$PWD/../../VrUtils/Inc
|
|
|
|
|
|
2026-07-13 18:50:49 +08:00
|
|
|
# Windows骞冲彴搴撻摼鎺?
|
2026-03-01 18:11:32 +08:00
|
|
|
win32:CONFIG(release, debug|release): {
|
|
|
|
|
LIBS += -L$$OUT_PWD/../../AppUtils/AppCommon/release -lAppCommon
|
|
|
|
|
LIBS += -L$$OUT_PWD/../../AppUtils/UICommon/release -lUICommon
|
2026-07-14 17:14:55 +08:00
|
|
|
LIBS += -L$$OUT_PWD/../../Nets/release -lModbusTCPClient
|
2026-03-01 18:11:32 +08:00
|
|
|
LIBS += -L$$OUT_PWD/../../Utils/VrUtils/release -lVrUtils
|
|
|
|
|
LIBS += -L$$OUT_PWD/../../Robot/FairinoWrapper/release/ -lFairinoWrapper
|
|
|
|
|
LIBS += -L$$OUT_PWD/../../SDK/Robot/fairino-cpp-sdk/libfairino/release/ -lfairino
|
|
|
|
|
}
|
|
|
|
|
else:win32:CONFIG(debug, debug|release): {
|
|
|
|
|
LIBS += -L$$OUT_PWD/../../AppUtils/AppCommon/debug -lAppCommond
|
|
|
|
|
LIBS += -L$$OUT_PWD/../../AppUtils/UICommon/debug -lUICommond
|
2026-07-14 17:14:55 +08:00
|
|
|
LIBS += -L$$OUT_PWD/../../Nets/debug -lModbusTCPClient
|
2026-03-01 18:11:32 +08:00
|
|
|
LIBS += -L$$OUT_PWD/../../Utils/VrUtils/debug -lVrUtilsd
|
|
|
|
|
LIBS += -L$$OUT_PWD/../../Robot/FairinoWrapper/debug/ -lFairinoWrapperd
|
|
|
|
|
LIBS += -L$$OUT_PWD/../../SDK/Robot/fairino-cpp-sdk/libfairino/debug/ -lfairinod
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-13 18:50:49 +08:00
|
|
|
# Windows绯荤粺搴?
|
2026-03-01 18:11:32 +08:00
|
|
|
win32 {
|
|
|
|
|
LIBS += -lws2_32
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-13 18:50:49 +08:00
|
|
|
# Windows浠诲姟鏍忓浘鏍囬厤缃?
|
2026-03-01 18:11:32 +08:00
|
|
|
win32 {
|
|
|
|
|
RC_ICONS = logo.ico
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-13 18:50:49 +08:00
|
|
|
# 璧勬簮鏂囦欢
|
2026-03-01 18:11:32 +08:00
|
|
|
RESOURCES += \
|
|
|
|
|
$$PWD/../../AppUtils/UICommon/common_resources.qrc \
|
|
|
|
|
resource.qrc
|