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

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


defineTest( glew ) {
8
9
10
11
12

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

Jan Möbius's avatar
Jan Möbius committed
13
  GLEW_PATH = c:\libs\glew
14
15
16
17

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

  !exists ( $${GLEW_PATH} ) {
Jan Möbius's avatar
Jan Möbius committed
18
    error (ERROR: GLEW not found or wrong path entry in OpenMesh\qmake\packages\packages.Windows! Please adjust it to your path!)
19
  }
20
  INCLUDEPATH *= $${GLEW_PATH}\include
Jan Möbius's avatar
Jan Möbius committed
21
  export(INCLUDEPATH)
22
  LIBS *= -L$${GLEW_PATH}\lib -lglew32
Jan Möbius's avatar
Jan Möbius committed
23
24
25
26
  export(LIBS)
}

defineTest( qt ) {
Jan Möbius's avatar
Jan Möbius committed
27
28
29
30
  CONFIG *= uitools
  export(CONFIG)
  QT += opengl network script sql
  export(QT)
Jan Möbius's avatar
Jan Möbius committed
31
32
33
}

defineTest( glut ) {
34
35
36
37
38

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

Jan Möbius's avatar
Jan Möbius committed
39
  GLUT_PATH = c:\libs\glut-3.7
40
41
42
43

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

  !exists ( $${GLUT_PATH} ) {
Jan Möbius's avatar
Jan Möbius committed
44
    error (ERROR: GLUT not found or wrong path entry in OpenMesh\qmake\packages\packages.Windows! Please adjust it to your path!)
45
  }
46
  INCLUDEPATH *= $${GLUT_PATH}\include
Jan Möbius's avatar
Jan Möbius committed
47
  export(INCLUDEPATH)
48
  LIBS *= -L$${GLUT_PATH}\lib -lglut32
Jan Möbius's avatar
Jan Möbius committed
49
50
51
52
53
54
55
56
57
58
59
60
  export(LIBS)
}

defineTest( openmp ) {
	QMAKE_CXXFLAGS_DEBUG += /openmp
	QMAKE_CXXFLAGS_RELEASE += /openmp
	export(QMAKE_CXXFLAGS_DEBUG)
	export(QMAKE_CXXFLAGS_RELEASE)
}

defineTest( openmesh ) {
  DEFINES += _USE_MATH_DEFINES NOMINMAX
61
62
63
64
65
66
67
68
69
70
71
72

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

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

Jan Möbius's avatar
Jan Möbius committed
73
74
75
76
77
  export(DEFINES)
  export(QMAKE_LIBDIR)
  export(LIBS)
}