-
Notifications
You must be signed in to change notification settings - Fork 40
/
drishti.pri
131 lines (99 loc) · 3.64 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
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\Qt-5.15.2\libQGLViewer\libQGLViewer-2.6.4 \
c:\cygwin64\home\acl900\drishtilib\freeglut\include \
c:\cygwin64\home\acl900\drishtilib\glew-2.1.0\include
QMAKE_LIBDIR += c:\Qt\Qt-5.15.2\libQGLViewer\libQGLViewer-2.6.4\lib \
c:\cygwin64\home\acl900\drishtilib\freeglut\lib\x64 \
c:\cygwin64\home\acl900\drishtilib\glew-2.1.0\build\lib\Release
}
contains(DRISHTI_DEFINES, ITK) {
ITKVer = 5.0
InsightToolkit = C:\InsightToolkit-$${ITKVer}.1
ITK = C:\ITK
QMAKE_LIBDIR += C:\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 = Ubuntu
contains(Facility_Name, Ubuntu) {
unix {
!macx {
message($$Facility_Name setup)
QMAKE_LFLAGS += "-Wl,-rpath=\'\$${ORIGIN}/ITK\'"
QMAKE_LFLAGS += "-Wl,-rpath=\'\$${ORIGIN}/sharedlibs\'"
QMAKE_LFLAGS += "-Wl,-rpath=\'\$${ORIGIN}/../sharedlibs\'"
contains(DRISHTI_DEFINES, RENDERER) {
INCLUDEPATH += /usr/include \
/home/acl900/drishtilib/libQGLViewer-2.6.4 \
/home/acl900/drishtilib/glew-2.2.0/include \
/home/acl900/drishtilib/assimp/include \
/home/acl900/drishtilib/assimp/build/include
QMAKE_CXXFLAGS += -fno-stack-protector
QMAKE_LIBDIR += /usr/lib \
/usr/lib/x86_64-linux-gnu \
/home/acl900/drishtilib/libQGLViewer-2.6.4/QGLViewer \
/home/acl900/drishtilib/glew-2.2.0/lib \
/home/acl900/drishtilib/assimp/build/bin
LIBS += -lQGLViewer-qt5 \
-lGLEW \
-lassimp
}
contains(DRISHTI_DEFINES, IMPORT) {
QMAKE_CXXFLAGS += -fno-stack-protector
QMAKE_LIBDIR += /usr/lib /usr/lib/x86_64-linux-gnu
}
contains(DRISHTI_DEFINES, TIFF) {
QMAKE_LIBDIR += /usr/lib/x86_64-linux-gnu
}
contains(DRISHTI_DEFINES, ITK) {
ITKVer = 5.2
InsightToolkit = /home/acl900/drishtilib/InsightToolkit-$${ITKVer}.1
ITK = /home/acl900/drishtilib/ITK
QMAKE_LIBDIR += /home/acl900/drishtilib/ITK/lib
options = $$find(DRISHTI_DEFINES, "RENDERER")
count(options, 0) {
QMAKE_LIBDIR += /usr/lib /usr/lib/x86_64-linux-gnu
}
}
}
}
}
#----------------------------------------------------------------
#----------------------------------------------------------------