IF(USE_OPENGL)
  INCLUDE_DIRECTORIES(../include)
  SET(ADM_OPENGL ADM_openGL${QT_LIBRARY_EXTENSION}6)
  INCLUDE_DIRECTORIES(${QT_HEADERS_DIR})
  INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR})
  INCLUDE_DIRECTORIES(${QT_QTOPENGL_INCLUDE_DIR}) 
  ADD_LIBRARY( ${ADM_OPENGL} SHARED ADM_openGl.cpp ADM_openGlDownloadTexture.cpp)
  TARGET_LINK_LIBRARIES(${ADM_OPENGL} ${OPENGL_LIBRARIES} ${QT_QTOPENGL_LIBRARIES} ${QT_QTGUI_LIBRARY} ${QT_QTCORE_LIBRARY} ADM_coreUI6 ADM_core6 ADM_coreUtils6)
  ADM_INSTALL_LIB(${ADM_OPENGL})
ENDIF(USE_OPENGL)

