You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
3.0 KiB

6 months ago
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets multimedia multimediawidgets network sql positioning quickcontrols2
CONFIG += c++11
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked 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 it uses 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
TARGET_ARCH = $${QT_ARCH}
contains(TARGET_ARCH, arm) {
CONFIG += link_pkgconfig
PKGCONFIG += opencv4
INCLUDEPATH += /opt/st/stm32mp1/3.1-snapshot/sysroots/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/usr/include
} else: win32 {
# Windows平台的库文件路径和头文件路径
LIBS += -LF:/coderead/OpenCV-MinGW-Build/x64/mingw/lib \
-lopencv_core452 \
-lopencv_highgui452 \
-lopencv_imgproc452 \
-lopencv_videoio452 \
-lopencv_imgcodecs452
INCLUDEPATH += F:/coderead/OpenCV-MinGW-Build/include
} else {
# 非Windows, 非ARM平台如Linux
LIBS += -L/usr/local/lib \
-lopencv_core \
-lopencv_highgui \
-lopencv_imgproc \
-lopencv_videoio \
-lopencv_imgcodecs
INCLUDEPATH += /usr/local/include # 注意应该是include而不是lib/include
}
SOURCES += \
album/album.cpp \
cam/CAM.cpp \
cam/camera.cpp \
cam/mylabel.cpp \
class_table/class_table.cpp \
comnet.cpp \
desktop.cpp \
desktop2.cpp \
flyme/flyme.cpp \
main.cpp \
assistant.cpp\
music/music.cpp \
set/mydevice.cpp \
set/set.cpp \
set/wireless/wirelessmodel.cpp \
slidepage/slidepage.cpp \
timer/alarm.cpp \
timer/numberpicker.cpp \
timer/switchbutton.cpp \
timer/tt.cpp \
weather/climate.cpp \
weather/weather.cpp
HEADERS += \
album/album.h \
assistant.h \
cam/CAM.h \
cam/camera.h \
cam/mylabel.h \
class_table/class_table.h \
comnet.h \
desktop.h \
desktop2.h \
flyme/flyme.h \
music/music.h \
set/mydevice.h \
set/set.h \
set/wireless/wirelessmodel.h \
slidepage/slidepage.h \
timer/alarm.h \
timer/numberpicker.h \
timer/switchbutton.h \
timer/tt.h \
weather/climate.h \
weather/weather.h
FORMS += \
album/album.ui \
assistant.ui \
cam/CAM.ui \
class_table/class_table.ui \
desktop2.ui \
flyme/flyme.ui \
music/music.ui \
set/mydevice.ui \
set/set.ui \
timer/tt.ui \
weather/climate.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
RESOURCES += \
src.qrc