完全移植929 mavlinkNode

This commit is contained in:
hm
2021-11-13 21:52:19 +08:00
parent baa57420b0
commit 047e9e1da2
5 changed files with 47 additions and 37 deletions
+11 -12
View File
@@ -39,7 +39,7 @@ DEFINES += QT_DEPRECATED_WARNINGS
# include sub project
DESTDIR = $$PWD/../bin
DESTDIR = $$PWD/../thirdpart/lib
MOC_DIR = $$PWD/../build
OBJECTS_DIR = $$PWD/../build
@@ -73,18 +73,18 @@ SOURCES += \
sbusparser.cpp \
statusprocess.cpp
INCLUDEPATH += $$DESTDIR/include
INCLUDEPATH += $$PWD/../thirdpart/include
# Capture whether this is a release/debug build.
CONFIG(debug, debug|release) {
LIBS += -L$$DESTDIR -lcored
LIBS += -L$$DESTDIR -linternalsd
LIBS += -L$$DESTDIR -lopmapwidgetd
LIBS += -L$$PWD/../thirdpart/lib -lcored
LIBS += -L$$PWD/../thirdpart/lib -linternalsd
LIBS += -L$$PWD/../thirdpart/lib -lopmapwidgetd
}
CONFIG(release, debug|release) {
LIBS += -L$$DESTDIR -lcore
LIBS += -L$$DESTDIR -linternals
LIBS += -L$$DESTDIR -lopmapwidget
LIBS += -L$$PWD/../thirdpart/lib -lcore
LIBS += -L$$PWD/../thirdpart/lib -linternals
LIBS += -L$$PWD/../thirdpart/lib -lopmapwidget
}
@@ -104,9 +104,9 @@ INCLUDEPATH += $$PWD/../mavlink \
win32|win64 {
win32|win64 {
src_dir = $$PWD\\*.h
dst_dir = $$PWD\\..\\bin\\include\\
dst_dir = $$PWD\\..\\thirdpart\\include\\
# dst_dir 最后的 \\ 是必须的,用来标示 xcopy 到一个文件夹,若不存在,创建之
# Replace slashes in paths with backslashes for Windows
@@ -114,13 +114,12 @@ win32|win64 {
dst_dir ~= s,/,\\,g
system(xcopy $$src_dir $$dst_dir /y /e)
}
unix {
src_dir = $$PWD/*.h
dst_dir = $$PWD/../bin/include/
dst_dir = $$PWD/../thirdpart/include/
!exists($$dst_dir): system(mkdir -p $$dst_dir)