Files
2022-10-27 14:27:14 +08:00

133 lines
3.3 KiB
Prolog

QT += widgets
QT += opengl
QT += network
QT += sql
QT += svg
#execution_character_set("utf-8")
# Capture whether this is a release/debug build.
CONFIG(debug, debug|release) {
# Target name.
TARGET = opmapwidgetd
}
CONFIG(release, debug|release) {
# Target name.
TARGET = opmapwidget
}
TEMPLATE = lib
DEFINES += OPMAPWIDGET_LIBRARY
DEFINES += QtopmapWidget
#VS的补丁 使用 自定义的数学常数
DEFINES += _USE_MATH_DEFINES
#目标生成路径
DESTDIR = $$PWD/../../bin
MOC_DIR = $$PWD/../../build
OBJECTS_DIR = $$PWD/../../build
CONFIG += resources_big
SOURCES += $$PWD/mapgraphicitem.cpp \
$$PWD/opmapwidget.cpp \
$$PWD/configuration.cpp \
$$PWD/waypointitem.cpp \
$$PWD/uavitem.cpp \
$$PWD/gpsitem.cpp \
$$PWD/trailitem.cpp \
$$PWD/homeitem.cpp \
$$PWD/mapripform.cpp \
$$PWD/mapripper.cpp \
$$PWD/traillineitem.cpp \
$$PWD/waypointline.cpp \
$$PWD/waypointcircle.cpp \
$$PWD/AltitudeItem.cpp \
$$PWD/waypointbutton.cpp \
$$PWD/waypointsetting.cpp \
$$PWD/mapripper.cpp \
geoFencecircle.cpp \
geoFenceitem.cpp \
geoFenceitemline.cpp \
measureline.cpp
HEADERS += $$PWD/mapgraphicitem.h \
$$PWD/opmapwidget.h \
$$PWD/configuration.h \
$$PWD/waypointitem.h \
$$PWD/uavitem.h \
$$PWD/gpsitem.h \
$$PWD/uavmapfollowtype.h \
$$PWD/uavtrailtype.h \
$$PWD/trailitem.h \
$$PWD/homeitem.h \
$$PWD/mapripform.h \
$$PWD/mapripper.h \
$$PWD/traillineitem.h \
$$PWD/waypointline.h \
$$PWD/waypointcircle.h \
$$PWD/mapwidgetglobal.h \
$$PWD/AltitudeItem.h \
$$PWD/waypointbutton.h \
$$PWD/waypointsetting.h \
$$PWD/mapripper.h \
geoFencecircle.h \
geoFenceitem.h \
geoFenceitemline.h \
measureline.h
RESOURCES += mapresources.qrc
FORMS += \
$$PWD/mapripform.ui
INCLUDEPATH += $$DESTDIR/include
#添加mavlink目录
INCLUDEPATH += $$PWD/../../mavlink \
$$PWD/../../mavlink/ardupilotmega \
$$PWD/../../mavlink/common \
$$PWD/../../mavlink/icarous \
$$PWD/../../mavlink/uAvionix \
$$PWD/../../mavlink/XYK \
$$PWD/../../mavlink/message_definitions
# Capture whether this is a release/debug build.
CONFIG(debug, debug|release) {
LIBS += -L$$DESTDIR -lcored
LIBS += -L$$DESTDIR -linternalsd
}
CONFIG(release, debug|release) {
LIBS += -L$$DESTDIR -lcore
LIBS += -L$$DESTDIR -linternals
}
win32|win64 {
src_dir = $$PWD\\*.h
dst_dir = $$DESTDIR\\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 = $$DESTDIR/include/
!exists($$dst_dir): system(mkdir -p $$dst_dir)
system(cp $$src_dir $$dst_dir -arf )
}