-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathhardwaretest.pro
More file actions
68 lines (56 loc) · 1.45 KB
/
hardwaretest.pro
File metadata and controls
68 lines (56 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#-------------------------------------------------
#
# Project created by QtCreator 2016-10-27T07:05:05
#
#-------------------------------------------------
QT += core gui serialport network bluetooth qml quick multimedia multimediawidgets
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = hardwaretest
TEMPLATE = app
# The path of target platform
target.path = /usr/bin
INSTALLS += target
LIBS += -lgpiod
#include(qextserialport/src/qextserialport.pri)
# Get libgpiod version
LIBGPIOD_VERSION = $$system(pkg-config --modversion libgpiod)
LIBGPIOD_VERSION_STR = $$first(LIBGPIOD_VERSION)
message(libgpiod_version = $$LIBGPIOD_VERSION_STR)
contains(LIBGPIOD_VERSION_STR, "2.0") {
message("Using gpioconroller_v2(libgpiod v2)")
DEFINES += USE_GPIOD_V2
} else {
message("Using gpioconroller_v1(libgpiod v1)")
DEFINES += USE_GPIOD_V1
}
message(DEFINES = $$DEFINES)
SOURCES += main.cpp\
epflash.cpp \
gpiocontroller.cpp \
mainwindow.cpp \
timedialog.cpp \
slavethread.cpp \
device.cpp \
service.cpp \
lcdtester.cpp \
recorderworker.cpp \
utils.cpp
HEADERS += mainwindow.h \
epflash.h \
gpiocontroller.h \
timedialog.h \
slavethread.h \
utils.h \
version.h \
device.h \
service.h \
recorderworker.h \
lcdtester.h
FORMS += mainwindow.ui \
epflash.ui \
timedialog.ui \
device.ui \
service.ui \
lcdtester.ui
RESOURCES += \
hardwaretext_resource.qrc