uhdspectrum.pro 1.7 KB
Newer Older
丁劲犇's avatar
丁劲犇 已提交
1 2 3 4
QT       += core gui network

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

5
CONFIG += c++17
丁劲犇's avatar
丁劲犇 已提交
6 7 8 9 10 11 12 13 14 15 16 17 18
# 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

SOURCES += \
    main.cpp \
M
manjaro 已提交
19 20 21 22 23 24 25
    qtgui/bookmarks.cpp \
    qtgui/bookmarkstablemodel.cpp \
    qtgui/bookmarkstaglist.cpp \
    qtgui/freqctrl.cpp \
    qtgui/meter.cpp \
    qtgui/plotter.cpp \
    specwidget.cpp \
D
dev@dev.com 已提交
26 27
    stdout_watcher.cpp \
    uhd_device.cpp
丁劲犇's avatar
丁劲犇 已提交
28 29

HEADERS += \
M
manjaro 已提交
30 31 32 33 34 35 36
    qtgui/bookmarks.h \
    qtgui/bookmarkstablemodel.h \
    qtgui/bookmarkstaglist.h \
    qtgui/freqctrl.h \
    qtgui/meter.h \
    qtgui/plotter.h \
    specwidget.h \
D
dev@dev.com 已提交
37 38
    stdout_watcher.h \
    uhd_device.h
丁劲犇's avatar
丁劲犇 已提交
39 40

FORMS += \
M
manjaro 已提交
41
    specwidget.ui
丁劲犇's avatar
丁劲犇 已提交
42

43
LIBS += -luhd
丁劲犇's avatar
丁劲犇 已提交
44 45 46 47 48 49 50
win32{
    INCLUDEPATH +="$$PWD/3rdlibs/win32/fftw"
    contains(QT_ARCH, i386) {
	LIBS+=-L"$$PWD/3rdlibs/win32/fftw/x86" -llibfftw3-3
    } else {
	LIBS+=-L"$$PWD/3rdlibs/win32/fftw/x64" -llibfftw3-3
    }
51 52 53
    INCLUDEPATH +="$(UHD_PKG_PATH)/include"
    LIBS += -L"$(UHD_PKG_PATH)/lib"
}else {
D
dev@dev.com 已提交
54
LIBS+=-lfftw3 -lpthread -lboost_system
55 56 57 58 59 60 61 62 63 64 65
}

TRANSLATIONS += uhdspectrum_zh_CN.ts

OTHER_FILES += uhdspectrum_zh_CN.ts

RESOURCES += \
    resource.qrc

DISTFILES += \
    uhdspectrum_zh_CN.qm