Files
gcs-nf/App/App.pro
T
2019-12-31 18:56:34 +08:00

103 lines
2.5 KiB
Prolog

#-------------------------------------------------
#
# Project created by QtCreator 2019-12-13T23:38:22
#
#-------------------------------------------------
QT += core gui network
QT += serialport
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
win32:
{
VERSION = 1.2.3.1
QMAKE_TARGET_PRODUCT = ground control softwear
QMAKE_TARGET_COMPANY = company
QMAKE_TARGET_DESCRIPTION = UAV Ground Control Station
QMAKE_TARGET_COPYRIGHT = hm copyright
}
TARGET = GCS
TEMPLATE = app
# 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
CONFIG += c++11
SOURCES += \
main.cpp \
mainwindow.cpp
HEADERS += \
mainwindow.h
# Default rules for deployment.
#qnx: target.path = /tmp/$${TARGET}/bin
#else: unix:!android: target.path = /opt/$${TARGET}/bin
#!isEmpty(target.path): INSTALLS += target
#add libs
#INCLUDEPATH += $$PWD/../thirdpart/libqui/include
#LIBS += -L$$PWD/../thirdpart/libqui/lib -lQtUi
#添加程序运行的第三方库
INCLUDEPATH += $$PWD/../thirdpart/include
LIBS += -L$$PWD/../thirdpart/lib -lSkin
LIBS += -L$$PWD/../thirdpart/lib -lSerialPort
LIBS += -L$$PWD/../thirdpart/lib -lClientLink
LIBS += -L$$PWD/../thirdpart/lib -lqNavigation
LIBS += -L$$PWD/../thirdpart/lib -lCockpit
LIBS += -L$$PWD/../thirdpart/lib -lMavLinkNode
LIBS += -L$$PWD/../thirdpart/lib -lopmapwidget
#temp file
DESTDIR = $$PWD/../app_bin
MOC_DIR = $$PWD/../build
OBJECTS_DIR = $$PWD/../build
#复制运行库到程序目录
win32 {
src_dir = $$PWD\\..\\thirdpart\\lib\\*.dll
dst_dir = $$PWD\\..\\app_bin\\
# 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)
}
#编译HDMI版本,方便适配大屏显示
DEFINES += BUILD_WITH_HDMI
TRANSLATIONS = qt_zh.ts qt_en.ts