Files
gcs-nf/MavLinkNode/MavLinkNode.pro
T

133 lines
2.8 KiB
Prolog
Raw Normal View History

2020-03-07 14:46:50 +08:00
QT += core gui network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
2020-09-23 16:37:16 +08:00
# Target name.
TARGET = MavLinkNode
2020-03-07 14:46:50 +08:00
2020-05-27 19:39:59 +08:00
2020-09-23 16:37:16 +08:00
CONFIG(debug, debug|release){
# 在DEBUG 版本后加入 d后缀
TARGET = $$join(TARGET,,,d)
2020-05-27 19:39:59 +08:00
}
2020-09-23 16:37:16 +08:00
2020-03-07 14:46:50 +08:00
TEMPLATE = lib
DEFINES += MAV_LIBRARY
CONFIG += resources_big
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
2020-04-09 20:19:56 +08:00
# include sub project
2020-06-08 17:54:17 +08:00
#include (./ParameterInspector/ParameterInspector.pri)
2020-06-11 17:32:58 +08:00
#include (./MAVLinkInspector/MAVLinkInspector.pri)
2020-03-07 14:46:50 +08:00
DESTDIR = $$PWD/../thirdpart/lib
MOC_DIR = $$PWD/../build
OBJECTS_DIR = $$PWD/../build
DEFINES += QtMavlinkNode
HEADERS += \
2020-04-03 09:39:31 +08:00
commandprocess.h \
mavlinknode.h \
2020-04-09 20:19:56 +08:00
parameterprocess.h \
missionprocess.h \
2020-08-20 17:48:09 +08:00
mavlinknodeglobal.h \
replay.h
2020-03-07 14:46:50 +08:00
SOURCES += \
2020-04-03 09:39:31 +08:00
commandprocess.cpp \
mavlinknode.cpp \
2020-04-09 20:19:56 +08:00
parameterprocess.cpp \
2020-08-20 17:48:09 +08:00
missionprocess.cpp \
replay.cpp
2020-03-07 14:46:50 +08:00
INCLUDEPATH += $$PWD/../thirdpart/include
2020-05-27 19:39:59 +08:00
# Capture whether this is a release/debug build.
CONFIG(debug, debug|release) {
LIBS += -L$$PWD/../thirdpart/lib -lcored
LIBS += -L$$PWD/../thirdpart/lib -linternalsd
LIBS += -L$$PWD/../thirdpart/lib -lopmapwidgetd
}
CONFIG(release, debug|release) {
LIBS += -L$$PWD/../thirdpart/lib -lcore
LIBS += -L$$PWD/../thirdpart/lib -linternals
LIBS += -L$$PWD/../thirdpart/lib -lopmapwidget
}
2020-03-07 14:46:50 +08:00
#添加mavlink目录
2020-09-23 14:40:11 +08:00
2020-09-23 16:37:16 +08:00
INCLUDEPATH += $$PWD/../mavlink \
$$PWD/../mavlink/ardupilotmega \
$$PWD/../mavlink/common \
$$PWD/../mavlink/icarous \
$$PWD/../mavlink/uAvionix \
$$PWD/../mavlink/XYK \
$$PWD/../mavlink/message_definitions
2020-03-07 14:46:50 +08:00
win32|win64 {
src_dir = $$PWD\\*.h
dst_dir = $$PWD\\..\\thirdpart\\include\\
# dst_dir 最后的 \\ 是必须的,用来标示 xcopy 到一个文件夹,若不存在,创建之
# Replace slashes in paths with backslashes for Windows
src_dir ~= s,/,\\,g
dst_dir ~= s,/,\\,g
system(xcopy $$src_dir $$dst_dir /y /e)
}
unix {
src_dir = $$PWD/*.h
dst_dir = $$PWD/../thirdpart/include/
!exists($$dst_dir): system(mkdir -p $$dst_dir)
system(cp $$src_dir $$dst_dir -arf )
}