Qt Pro文件写法记录
#-------------------------------------------------
#
# Project created by QtCreator 2018-09-19T17:42:57
#
#-------------------------------------------------
QT += core gui network sql
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = CinemaDevice
TEMPLATE = app
DESTDIR = $$PWD/bin
SOURCES += main.cpp\
view/configwindow.cpp \
view/monitorwindow.cpp \
view/startdialog.cpp \
lib/crc16.cpp \
lib/sensor.cpp \
lib/jsonparser.cpp \
pubfunction.cpp \
capturethread.cpp \
cinemascene.cpp \
lib/httpobject.cpp \
lib/devicestate.cpp \
lib/imagescreen.cpp \
lib/customsense.cpp \
lib/audiorecord.cpp \
lib/cameracapture.cpp \
serialport.cpp \
lib/fft.cpp \
lib/MySQLDB.cpp \
lib/fingerprint.cpp \
lib/logout.cpp \
lib/wavereader.cpp \
lib/pcm16obj.cpp
FORMS += \
view/configwindow.ui \
view/monitorwindow.ui \
view/startdialog.ui
HEADERS += \
view/configwindow.h \
view/monitorwindow.h \
view/startdialog.h \
lib/crc16.h \
lib/sensor.h \
serialport.h \
lib/devicedatastruct.h \
lib/jsonparser.h \
pubfunction.h \
capturethread.h \
cinemascene.h \
lib/httpobject.h \
lib/config.h \
lib/devicestate.h \
lib/imagescreen.h \
lib/customsense.h \
lib/audiorecord.h \
lib/cameracapture.h \
lib/fft.h \
lib/MySQLDB.h \
lib/songfingerprintstypes.h \
lib/fingerprint.h \
lib/logout.h \
lib/wavereader.h \
lib/pcm16obj.h
INCLUDEPATH += view/
INCLUDEPATH += lib/
INCLUDEPATH += lib/include
contains(QT_ARCH, x86_64) {
message("x86_64 64-bit")
LIBS += "$$PWD/lib/ARM lib/mvsdk/x64/libMVSDK.so"
} else {
message("arm-64bit")
LIBS += "../lib/ARM lib/libMVSDK.so"
#LIBS += "../CinemaDevice/lib/ARM lib/libMVSDK-8bit.so"
}
LIBS += -lasound
DISTFILES += \
ReadMe.txt