forked from nci/drishti
-
Notifications
You must be signed in to change notification settings - Fork 0
/
drishti.pri
168 lines (131 loc) · 4.72 KB
/
drishti.pri
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
include(version.pri)
QT += widgets core gui
HEADERS += commonqtclasses.h
Windows_Setup = Win64
#----------------------------------------------------------------
# Windows setup for 64-bit system
contains(Windows_Setup, Win64) {
win32 {
message(Win64 setup)
contains(DRISHTI_DEFINES, RENDERER) {
INCLUDEPATH += c:\Qt\libQGLViewer-2.6.1 \
c:\cygwin64\home\acl900\drishtilib\freeglut\include \
c:\cygwin64\home\acl900\drishtilib\glew-1.11.0\include
QMAKE_LIBDIR += c:\Qt\libQGLViewer-2.6.1\lib \
c:\cygwin64\home\acl900\drishtilib\freeglut\lib\x64 \
c:\cygwin64\home\acl900\drishtilib\glew-1.11.0\lib\Release\x64
}
contains(DRISHTI_DEFINES, IMPORT) {
INCLUDEPATH += c:\cygwin64\home\acl900\drishtilib\netcdf\include
QMAKE_LIBDIR += c:\cygwin64\home\acl900\drishtilib\netcdf\lib \
}
contains(DRISHTI_DEFINES, NETCDF) {
INCLUDEPATH += c:\cygwin64\home\acl900\drishtilib\netcdf\include
QMAKE_LIBDIR += c:\cygwin64\home\acl900\drishtilib\netcdf\lib \
}
contains(DRISHTI_DEFINES, ITK) {
ITKVer = 4.3
InsightToolkit = D:\InsightToolkit-$${ITKVer}.1
ITK = D:\ITK
QMAKE_LIBDIR += d:\ITK\lib\Release
}
}
}
#----------------------------------------------------------------
#----------------------------------------------------------------
# MacOSX setup
macx {
contains(DRISHTI_DEFINES, RENDERER) {
INCLUDEPATH += /Users/acl900/Library/Frameworks/QGLViewer.framework/Headers \
/usr/local/include
LIBS += -L/usr/local/lib
LIBS += -F/Users/acl900/Library/Frameworks
LIBS += -L/Users/acl900/Library/Frameworks
LIBS += -framework ApplicationServices
}
contains(DRISHTI_DEFINES, IMPORT) {
INCLUDEPATH += /usr/local/include
QMAKE_LIBDIR += /usr/local/lib
}
contains(DRISHTI_DEFINES, ITK) {
QMAKE_CFLAGS_X86_64 += -mmacosx-version-min=10.7
QMAKE_CXXFLAGS_X86_64 = $$QMAKE_CFLAGS_X86_64
ITKVer = 4.3
InsightToolkit = /Users/acl900/InsightToolkit-$${ITKVer}.1
ITK = /Users/acl900/ITK
QMAKE_LIBDIR += /Users/acl900/ITK/lib
}
}
#----------------------------------------------------------------
#----------------------------------------------------------------
#Linux setup
Facility_Name = MassiveAtMonashUniversity
contains(Facility_Name, VirtualBox) {
unix {
!macx {
message(VirtualBox setup)
contains(DRISHTI_DEFINES, RENDERER) {
QMAKE_LFLAGS += -Xlinker -rpath -Xlinker \'\$\$ORIGIN/sharedlibs\'
QMAKE_LFLAGS += -Xlinker -rpath -Xlinker \'\$\$ORIGIN/ITK\'
QMAKE_LIBDIR += /usr/lib /usr/lib/x86_64-linux-gnu
}
contains(DRISHTI_DEFINES, IMPORT) {
QMAKE_LFLAGS += -Xlinker -rpath -Xlinker \'\$\$ORIGIN/sharedlibs\'
QMAKE_LFLAGS += -Xlinker -rpath -Xlinker \'\$\$ORIGIN/ITK\'
QMAKE_LIBDIR += /usr/lib /usr/lib/x86_64-linux-gnu
}
contains(DRISHTI_DEFINES, NETCDF) {
INCLUDEPATH += /usr/include/netcdf-3
}
contains(DRISHTI_DEFINES, TIFF) {
QMAKE_LIBDIR += /usr/lib/x86_64-linux-gnu
}
contains(DRISHTI_DEFINES, ITK) {
ITKVer = 4.3
InsightToolkit = /home/acl900/InsightToolkit-$${ITKVer}.1
ITK = /home/acl900/ITK
QMAKE_LIBDIR += /home/acl900/ITK/lib
options = $$find(DRISHTI_DEFINES, "RENDERER")
count(options, 0) {
QMAKE_LIBDIR += /usr/lib /usr/lib/x86_64-linux-gnu
}
}
}
}
}
contains(Facility_Name, MassiveAtMonashUniversity) {
unix {
!macx {
message(MASSIVE facility at Monash University setup)
contains(DRISHTI_DEFINES, RENDERER) {
INCLUDEPATH += /usr/local/libqglviewer/2.4.0/include \
/usr/local/glut/3.7/include \
/usr/local/glew/1.10.0/include
QMAKE_LIBDIR += /usr/lib /usr/lib/x86_64-linux-gnu /usr/local/libqglviewer/2.4.0/lib /usr/local/glut/3.7/lib /usr/local/glew/1.10.0/lib64
}
contains(DRISHTI_DEFINES, IMPORT) {
QMAKE_LIBDIR += /usr/lib /usr/lib/x86_64-linux-gnu
}
contains(DRISHTI_DEFINES, NETCDF) {
INCLUDEPATH += /usr/local/netcdf/4.1.1-gcc/include
QMAKE_LIBDIR += /usr/local/netcdf/4.1.1-gcc/lib
}
contains(DRISHTI_DEFINES, TIFF) {
QMAKE_LIBDIR += /usr/lib/x86_64-linux-gnu
}
contains(DRISHTI_DEFINES, ITK) {
INCLUDEPATH += /usr/local/include \
/usr/local/itk/4.4.0/include/ITK-4.4
ITKVer = 4.4
InsightToolkit = /home/acl900/InsightToolkit-$${ITKVer}.1
ITK = /home/acl900/ITK
QMAKE_LIBDIR += /usr/local/itk/4.4.0/lib
options = $$find(DRISHTI_DEFINES, "RENDERER")
count(options, 0) {
QMAKE_LIBDIR += /usr/lib /usr/lib/x86_64-linux-gnu
}
}
}
}
}
#----------------------------------------------------------------