Repository navigation
Expand file tree
/
Copy pathhackRF.pro
More file actions
48 lines (39 loc) · 1.38 KB
/
Copy pathhackRF.pro
File metadata and controls
48 lines (39 loc) · 1.38 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
QT += core gui printsupport
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++17
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
hackrfdevice.cpp \
main.cpp \
mainwindow.cpp \
qcustomplot/qcustomplot.cpp
HEADERS += \
hackrfdevice.h \
mainwindow.h \
qcustomplot/qcustomplot.h
FORMS += \
mainwindow.ui
unix {
CONFIG += link_pkgconfig
packagesExist(libhackrf) {
PKGCONFIG += libhackrf
} else {
error("libhackrf не найден. Установи HackRF/libhackrf: macOS: brew install hackrf; Ubuntu/Debian: sudo apt install hackrf")
}
packagesExist(fftw3) {
PKGCONFIG += fftw3
} else {
error("fftw3 не найден. Установи fftw3: macOS: brew install fftw; Ubuntu/Debian: sudo apt install fftw")
}
packagesExist(libusb-1.0) {
PKGCONFIG += libusb-1.0
} else {
error("libusb-1.0 не найден. Установи libusb-1.0: macOS: brew install libusb-1.0; Ubuntu/Debian: sudo apt install libusb-1.0")
}
}
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target