IF(USE_OPENGL)
  SET(ADM_OPENGL ADM_openGL${QT_LIBRARY_EXTENSION}6)
  ADD_LIBRARY(${ADM_OPENGL} SHARED)
  YASMIFY(azm ADM_openGlDownload_asm)
  TARGET_SOURCES(${ADM_OPENGL} PRIVATE ADM_openGl.cpp ADM_openGlDownloadTexture.cpp  ${azm})
  TARGET_INCLUDE_DIRECTORIES(${ADM_OPENGL} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../include)
  TARGET_INCLUDE_DIRECTORIES(${ADM_OPENGL} PRIVATE ${QT_HEADERS_DIR})
  TARGET_INCLUDE_DIRECTORIES(${ADM_OPENGL} PRIVATE ${OPENGL_INCLUDE_DIR})
  TARGET_INCLUDE_DIRECTORIES(${ADM_OPENGL} PRIVATE ${QT_QTOPENGL_INCLUDE_DIR})
  TARGET_LINK_LIBRARIES(${ADM_OPENGL} PUBLIC ${OPENGL_LIBRARIES} ${QT_QTGUI_LIBRARY} ${QT_QTCORE_LIBRARY} adm_pthread ADM_coreUI6 ADM_core6 ADM_coreUtils6 ADM_coreImage6)
  ADM_INSTALL_LIB(${ADM_OPENGL})
ENDIF()

