packages.Windows 1.83 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 13 14 15 16 17

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

  GLEW_PATH = c:\glew

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

  !exists ( $${GLEW_PATH} ) {
18 19
    error (ERROR: GLEW not found or wrong path entry in OpenMesh\qmake\packages\packages.Windows!)
  }
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 39 40 41 42 43

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

  GLUT_PATH = c:\glut

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

  !exists ( $${GLUT_PATH} ) {
44 45
    error (ERROR: GLUT not found or wrong path entry in OpenMesh\qmake\packages\packages.Windows!)
  }
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)
}