packages.Windows 8.74 KB
Newer Older
Jan Möbius's avatar
 
Jan Möbius committed
1
2
3
4
5

################################################################################
# INCLUDE Packages
################################################################################

6
#ADDLIBDEBUG = true
Jan Möbius's avatar
 
Jan Möbius committed
7

Jan Möbius's avatar
Jan Möbius committed
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
# CGAL
CGAL_PATH_INC		= C:\CGAL-3.4\include
CGAL_PATH_LIB		= /usr/lib

defineTest( cgal ) {

	exists ( $${CGAL_PATH_INC} ) {
		
#		addLib ( /usr/lib $${CGAL_PATH_LIB}, CGAL ) {
#			addLib ( /usr/lib $${CGAL_PATH_LIB}, CGAL_Core ) {
#				addLib ( /usr/lib $${CGAL_PATH_LIB}, CGAL_ImageIO ) {
#					addLib ( /usr/lib $${CGAL_PATH_LIB}, CGAL_PDB ) {
#						addLib ( /usr/lib $${CGAL_PATH_LIB}, CGAL_Qt4 ) {

						        # disabled due to compiler errors with gmp
  						        #INCLUDEPATH *= $${CGAL_PATH_INC}
  						        #export(INCLUDEPATH)
							DEFINES += CGAL_USE_F2C
							export(DEFINES)
						

							return(true)
#						}
#					}
#				}
#			}
#		}
	} else {
		message ( WARNING: cgal header files not found! )
	}

	return(false)
}



Jan Möbius's avatar
 
Jan Möbius committed
44
defineTest( glew ) {
45
46
47
48
49
50
51
52
53
54

  #######################################
  ## Enter here the correct path to GLEW
  #######################################

  GLEW_PATH = c:\glew

  ######################################

  INCLUDEPATH *= $${GLEW_PATH}\include
55
56
57
58
59
  export(INCLUDEPATH)  

  !addLib( $${GLEW_PATH}\lib , glew32 ) {
    error (ERROR: GLEW not found or wrong path entry in qmake\packages\packages.Windows!) 
  }
Jan Möbius's avatar
 
Jan Möbius committed
60
61
62
63
64
65
66
}

defineTest( qt ) {

}

defineTest( glut ) {
67
68
69
70
71

  #######################################
  ## Enter here the correct path to GLUT
  #######################################

Jan Möbius's avatar
Jan Möbius committed
72
  GLUT_PATH = C:\libs\glut-3.7
73
74
75
76

  #######################################

  INCLUDEPATH *= $${GLUT_PATH}\include
Jan Möbius's avatar
 
Jan Möbius committed
77
  export(INCLUDEPATH)
78
79
80
81
82

  !addLib( $${GLUT_PATH}\lib , glut32) {
    error (ERROR: GLUT not found or wrong path entry in qmake\packages\packages.Windows!) 
  }

Jan Möbius's avatar
 
Jan Möbius committed
83
84
85
86
87
88
89
90
}

defineTest( acg ) {
  DEFINES *= INCLUDE_TEMPLATES
  DEFINES *= _USE_MATH_DEFINES NOMINMAX
  export(DEFINES)
  contains( OPENFLIPPER , OpenFlipper ){
    LIBS+= -L$${TOPDIR}/OpenFlipper/$${BUILDDIRECTORY} -lACG
91
    INCLUDEPATH += $${TOPDIR}/ACG/include
Jan Möbius's avatar
 
Jan Möbius committed
92
93
#    message(Using internal ACG Library of OpenFlipper)
  } else {
94
    INCLUDEPATH += $${TOPDIR}/ACG/include
Jan Möbius's avatar
 
Jan Möbius committed
95
96
97
98
    QMAKE_LIBDIR += $${TOPDIR}/ACG/lib/$${BUILDDIRECTORY}
    LIBS+= -L$${TOPDIR}/ACG/lib/$${BUILDDIRECTORY} -lACG
    export(QMAKE_LIBDIR)
  }
99
  export(INCLUDEPATH)
Jan Möbius's avatar
 
Jan Möbius committed
100
101
102
103
  export(LIBS)
}

defineTest( openmesh ) {
Jan Möbius's avatar
Jan Möbius committed
104
105
106
107
108
109
110
  INCLUDEPATH += $${TOPDIR}/OpenMesh/src

  QMAKE_LIBDIR += $${TOPDIR}/OpenMesh/lib

  CONFIG( debug, debug|release ){
    LIBS+= -L$${TOPDIR}/OpenFlipper/$${BUILDDIRECTORY} -lOpenMeshCored
    LIBS+= -L$${TOPDIR}/OpenFlipper/$${BUILDDIRECTORY} -lOpenMeshToolsd
Jan Möbius's avatar
 
Jan Möbius committed
111
  } else {
Jan Möbius's avatar
Jan Möbius committed
112
113
    LIBS+= -L$${TOPDIR}/OpenFlipper/$${BUILDDIRECTORY} -lOpenMeshCore
    LIBS+= -L$${TOPDIR}/OpenFlipper/$${BUILDDIRECTORY} -lOpenMeshTools
Jan Möbius's avatar
 
Jan Möbius committed
114
  }
Jan Möbius's avatar
Jan Möbius committed
115
116

  QMAKE_LIBDIR += $${TOPDIR}/OpenFlipper/$${BUILDDIRECTORY} 
Jan Möbius's avatar
 
Jan Möbius committed
117
118
119
120
  
  DEFINES *= INCLUDE_TEMPLATES
  DEFINES *= _USE_MATH_DEFINES NOMINMAX
  
Jan Möbius's avatar
Jan Möbius committed
121
122
  export(INCLUDEPATH)
  export(QMAKE_LIBDIR)
Jan Möbius's avatar
 
Jan Möbius committed
123
124
125
  export(LIBS)
}

Jan Möbius's avatar
Jan Möbius committed
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147

defineTest( openmesh ) {
  INCLUDEPATH += $${TOPDIR}/OpenMesh/src
  QMAKE_LIBDIR += $${TOPDIR}/OpenMesh/lib

  DEFINES *= INCLUDE_TEMPLATES
  DEFINES *= _USE_MATH_DEFINES NOMINMAX

  CONFIG( debug, debug|release ){
    LIBS+= -L$${TOPDIR}/OpenMesh/lib -lOpenMeshCored
    LIBS+= -L$${TOPDIR}/OpenMesh/lib -lOpenMeshToolsd
  } else {
    LIBS+= -L$${TOPDIR}/OpenMesh/lib -lOpenMeshCore
    LIBS+= -L$${TOPDIR}/OpenMesh/lib -lOpenMeshTools
  }

  export(INCLUDEPATH)
  export(DEFINES)
  export(QMAKE_LIBDIR)
  export(LIBS)
}

148
149
150
151
152
153
154
155
156
157
158
159
160
defineTest( qwt ) {

  #######################################
  ## Enter here the correct path to qwt
  #######################################

  QWT_PATH = C:\qwt

  #######################################


  INCLUDEPATH *= $${QWT_PATH}\src
  export(INCLUDEPATH)
161
162
163
164
165
166
167
168

  !addLib( $${QWT_PATH}\lib , qwt5) {
    message (WARNING: QWT not found or wrong path entry in qmake\packages\packages.Windows!) 
  } else {
    DEFINES *= USE_QWT
    export(DEFINES)
  }

169
170
171
}


Jan Möbius's avatar
 
Jan Möbius committed
172
173
174
175
176
177
178
179
defineTest( openmp ) {
	QMAKE_CXXFLAGS_DEBUG += /openmp
	QMAKE_CXXFLAGS_RELEASE += /openmp
	export(QMAKE_CXXFLAGS_DEBUG)
	export(QMAKE_CXXFLAGS_RELEASE)
}

defineTest( gmm ) {
180
181
182
183
184

  #######################################
  ## Enter here the correct path to GMM
  #######################################

Jan Möbius's avatar
Jan Möbius committed
185
  GMM_PATH = C:\libs\gmm-3.0
186
187
188
189
190
191
192

  #######################################

  !exists( $${GMM_PATH} ) {
    error( ERROR: GMM not found or wrong path entry in OpenMesh\qmake\packages\packages.Windows! )
  }

Jan Möbius's avatar
Jan Möbius committed
193
  INCLUDEPATH += $${GMM_PATH}\include
Jan Möbius's avatar
 
Jan Möbius committed
194
195
196
197
198
199
  DEFINES *= _SCL_SECURE_NO_DEPRECATE
  export(DEFINES) 
  export(INCLUDEPATH)
}

defineTest( wordnet ) {
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214

  ##########################################
  ## Enter here the correct path to wordnet
  ##########################################

  WN_PATH = C:\Program Files\WordNet\2.1

  ##########################################

  !exists( $${WN_PATH} ) {
    error( ERROR: Wordnet not found or wrong path entry in OpenMesh\qmake\packages\packages.Windows! )
  }
  

  INCLUDEPATH *= $${WN_PATH}\src\include
Jan Möbius's avatar
 
Jan Möbius committed
215
  export(INCLUDEPATH)
216
  LIBS += -l$${WN_PATH}\lib\wn
Jan Möbius's avatar
 
Jan Möbius committed
217
218
219
220
  export(LIBS)
}

defineTest( lapack ) {
221
222
223
224
225
226
227
228
229
230
231
232
233
234

  ##############################################
  ## Enter here the correct path to lapack libs
  ##############################################

  LAP_LIB_PATH = C:\CLAPACK\LIB\Win32

  ##############################################

  !exists( $${LAP_LIB_PATH} ) {
    error( ERROR: lapack not found or wrong path entry in OpenMesh\qmake\packages\packages.Windows! )
  }

  LIBS *= -L$${LAP_LIB_PATH} -lclapack_nowrap -lblas_nowrap -llibf2c -ltmglib_nowrap
Jan Möbius's avatar
 
Jan Möbius committed
235
236
237
238
239
240
  LIBS *= /NODEFAULTLIB:"libcmt"
  export(LIBS)
}

defineTest( taucs ) {

241
242
243
244
245
246
247
248
249
250
251
252
253
254
  #########################################
  ## Enter here the correct path to taucs
  #########################################

  TAUCS_PATH = C:\taucs

  #########################################

  !exists( $${TAUCS_PATH} ) {
    error( ERROR: taucs not found or wrong path entry in OpenMesh\qmake\packages\packages.Windows! )
  }

  LIBS *= -L$${TAUCS_PATH}\lib -llibtaucs
  INCLUDEPATH += $${TAUCS_PATH}\include
Jan Möbius's avatar
 
Jan Möbius committed
255
256
257
258
259
  export(INCLUDEPATH)
  export(LIBS)
}

defineTest( superlu ) {
260
261
262
263
264
265
266
267
268
269
270
271
272
273

  ###########################################
  ## Enter here the correct path to superlu
  ###########################################

  SLU_PATH = C:\SuperLU_3.0

  ###########################################

  !exists( $${SLU_PATH} ) {
    error( ERROR: SuperLU not found or wrong path entry in OpenMesh\qmake\packages\packages.Windows! )
  }

  INCLUDEPATH *= $${SLU_PATH}
Jan Möbius's avatar
 
Jan Möbius committed
274
  CONFIG( debug, debug|release ){
275
    LIBS *= -L$${SLU_PATH}\lib -lSuperLUd
Jan Möbius's avatar
 
Jan Möbius committed
276
  } else {
277
    LIBS *= -L$${SLU_PATH}\lib -lSuperLU
Jan Möbius's avatar
 
Jan Möbius committed
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
  }
  export(INCLUDEPATH)
  export(LIBS)
}

defineTest( physim2 ) {
  REQUIRES += PhysimLibrary
  export(REQUIRES)
  message( TODO : Windows physim2 )
}

defineTest( usb ) {
  REQUIRES += USBLibrary
  export(REQUIRES)
  message( TODO : Windows usb )
}

defineTest( freetype ) {
296
297
298
299
300
301
302
303
304
305

  ###########################################
  ## Enter here the correct path to freetype
  ###########################################

  FT_PATH = C:\GnuWin32

  ###########################################

  !exists( $${FT_PATH} ) {
Jan Möbius's avatar
Jan Möbius committed
306
307
    message( WARNING: FreeType not found or wrong path entry in OpenMesh\qmake\packages\packages.Windows! )
    return(false)
308
309
  }

310
311
312
313
314
315
316
317
318
  !addLib( $${FT_PATH}\lib , freetype) {
    error (ERROR: freetype not found or wrong path entry in qmake\packages\packages.Windows!) 
    return(false)
  } else {
    INCLUDEPATH += $$quote($${FT_PATH}\include) $$quote($${FT_PATH}\include\freetype2) 
    export(INCLUDEPATH)
    return(true)
  }

Mike Kremer's avatar
   
Mike Kremer committed
319
320

  return(true)
Jan Möbius's avatar
 
Jan Möbius committed
321
322
323
}

defineTest( ftgl ) {
324
325
326
327
328
329
330
331
332

  #########################################
  ## Enter here the correct path to FTGL
  #########################################

  FTGL_PATH = C:\ftgl

  #########################################

333
334
335
336
337
338
339
340

  !freetype() {
    error ( ERROR: FTGL requires FreeType but FreeType was not found )
  }
  

  CONFIG( debug, debug|release ){
    addLib( $${FTGL_PATH}\msvc\Build , ftgl_D ) {
Jan Möbius's avatar
Jan Möbius committed
341
      DEFINES += USE_FTGL
342
343
      INCLUDEPATH *= $${FTGL_PATH}\src 
      export(INCLUDEPATH)
Jan Möbius's avatar
Jan Möbius committed
344
345
      export(DEFINES)
    } else {
346
      message( WARNING: FTGL not found or wrong path entry in OpenMesh\qmake\packages\packages.Windows! ) 
Jan Möbius's avatar
Jan Möbius committed
347
    }
Jan Möbius's avatar
 
Jan Möbius committed
348
  } else {
349
350
351
352
353
354
355
356
    addLib( $${FTGL_PATH}\msvc\Build , ftgl ) {
      DEFINES += USE_FTGL
      INCLUDEPATH *= $${FTGL_PATH}\src 
      export(INCLUDEPATH)
      export(DEFINES)
    } else {
      message( WARNING: FTGL not found or wrong path entry in OpenMesh\qmake\packages\packages.Windows! )
    }
Jan Möbius's avatar
 
Jan Möbius committed
357
358
359
360
361
362
  }
  
}