-
Notifications
You must be signed in to change notification settings - Fork 1
/
ZeroMQPlugin.pro
73 lines (57 loc) · 1.73 KB
/
ZeroMQPlugin.pro
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
69
70
71
72
73
QT += core widgets gui
TEMPLATE = lib
DEFINES += ZEROMQPLUGIN_LIBRARY
CONFIG += c++11
CONFIG += unversioned_libname unversioned_soname
isEmpty(PLUGIN_DIRECTORY) {
_HOME = $$(HOME)
isEmpty(_HOME) {
error(Cannot deduce user home directory. Please provide a valid plugin installation path through the PLUGIN_DIRECTORY property)
}
PLUGIN_DIRECTORY=$$_HOME/.suscan/plugins
}
isEmpty(SUWIDGETS_PREFIX) {
SUWIDGETS_INSTALL_HEADERS=$$[QT_INSTALL_HEADERS]/SuWidgets
} else {
SUWIDGETS_INSTALL_HEADERS=$$SUWIDGETS_PREFIX/include/SuWidgets
}
isEmpty(SIGDIGGER_PREFIX) {
SIGDIGGER_INSTALL_HEADERS=$$[QT_INSTALL_HEADERS]/SigDigger
} else {
SIGDIGGER_INSTALL_HEADERS=$$SIGDIGGER_PREFIX/include
}
# 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 += \
AddChanDialog.cpp \
AddMasterDialog.cpp \
MultiChannelTreeModel.cpp \
Registration.cpp \
SettingsManager.cpp \
ZeroMQSink.cpp \
ZeroMQWidget.cpp \
ZeroMQWidgetFactory.cpp \
MultiChannelForwarder.cpp
HEADERS += \
AddChanDialog.h \
AddMasterDialog.h \
MultiChannelTreeModel.h \
SettingsManager.h \
ZeroMQSink.h \
ZeroMQWidget.h \
ZeroMQWidgetFactory.h \
MultiChannelForwarder.h
INCLUDEPATH += $$SUWIDGETS_INSTALL_HEADERS $$SIGDIGGER_INSTALL_HEADERS
unix: CONFIG += link_pkgconfig
unix: PKGCONFIG += suscan sigutils fftw3 sndfile cppzmq
CONFIG += c++11
# Default rules for deployment.
target.path = $$PLUGIN_DIRECTORY
!isEmpty(target.path): INSTALLS += target
FORMS += \
AddChanDialog.ui \
AddMasterDialog.ui \
ZeroMQWidget.ui
RESOURCES += \
zmq_icons.qrc