if(WIN32)
  target_link_libraries(${module_id} gdi32)
endif()
  

link_directories(${OpenGL_LIB_DIR})
target_link_libraries(
  ${module_id}
  vsxu_engine_graphics
  vsxu_engine
  ${CMAKE_THREAD_LIBS_INIT}
  ${GLEW_LIBRARY}
  ${OPENGL_LIBRARIES}
  ${PNG_LIBRARIES}
  ${JPEG_LIBRARIES}
)

if (UNIX OR VSXU_WINDOWS_LIB_BUILD)
    install(TARGETS ${module_id} DESTINATION ${VSXU_INSTALL_LIB_DIR}/vsxu/plugins)
else()
  if (WIN32)
    install(TARGETS ${module_id} DESTINATION plugins COMPONENT engine)
  else()
    message("unknown platform install target, fix this")
  endif()

endif()


set_target_properties(
  ${module_id}
    PROPERTIES
      PREFIX ""
)
