-
Notifications
You must be signed in to change notification settings - Fork 1
/
QtAD.pro
56 lines (47 loc) · 1.52 KB
/
QtAD.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
TEMPLATE = app
QT += core gui widgets
greaterThan(QT_MAJOR_VERSION, 5): QT += openglwidgets
MOC_DIR = .moc
OBJECTS_DIR = .obj
VERSION = 2.0.0
QMAKE_CFLAGS += -std=c99
INCLUDEPATH += $$(EPICS_BASE)/include
LIBS += -L$$(EPICS_BASE)/lib/$$(EPICS_HOST_ARCH)
macx{
INCLUDEPATH += $$(EPICS_BASE)/include/os/Darwin $$(EPICS_BASE)/include/compiler/clang
exists($$(EPICS_BASE)/lib/$$(EPICS_HOST_ARCH)/libca.a) {
LIBS += $$(EPICS_BASE)/lib/$$(EPICS_HOST_ARCH)/libca.a $$(EPICS_BASE)/lib/$$(EPICS_HOST_ARCH)/libCom.a
} else {
LIBS += -Wl,-rpath,$$(EPICS_BASE)/lib/$$(EPICS_HOST_ARCH) -lca -lCom
}
}
unix:!macx{
INCLUDEPATH += $$(EPICS_BASE)/include/os/Linux $$(EPICS_BASE)/include/compiler/gcc
exists($$(EPICS_BASE)/lib/$$(EPICS_HOST_ARCH)/libca.a) {
LIBS += $$(EPICS_BASE)/lib/$$(EPICS_HOST_ARCH)/libca.a $$(EPICS_BASE)/lib/$$(EPICS_HOST_ARCH)/libCom.a -lreadline -ldl -lrt
} else {
LIBS += -Wl,-rpath,$$(EPICS_BASE)/lib/$$(EPICS_HOST_ARCH) -lca -lCom
}
}
win32{
INCLUDEPATH += $$(EPICS_BASE)/include/os/WIN32 $$(EPICS_BASE)/include/compiler/msvc
LIBS += -lca -lCom -lws2_32 -lopengl32
}
# Input
HEADERS += pvobject.h \
adviewer.h \
bayer.h \
window.h
SOURCES += pvobject.cpp \
adviewer.cpp \
main.cpp \
bayer.c \
window.cpp
# Install
isEmpty(PREFIX) {
unix {
PREFIX=/usr/local/bin
}
}
target.path = $$PREFIX
INSTALLS += target