# MegaMol
# Copyright (c) 2021, MegaMol Dev Team
# All rights reserved.
#

megamol_plugin(image
  BUILD_DEFAULT OFF
  DEPENDS_PLUGINS
    image_calls)

if (image_PLUGIN_ENABLED)
  if (UNIX)
    find_package(JPEG REQUIRED)
    target_link_libraries(image PRIVATE JPEG::JPEG)
  endif ()

  if (MPI_C_FOUND)
    target_link_libraries(image PRIVATE MPI::MPI_C)
  endif ()
endif ()

# MegaMol
# Copyright (c) 2021, MegaMol Dev Team
# All rights reserved.
#

megamol_plugin(image
  BUILD_DEFAULT OFF
  DEPENDS_GL
  DEPENDS_PLUGINS
    image_calls)

if (image_PLUGIN_ENABLED)
  if (UNIX)
    find_package(JPEG REQUIRED)
    target_link_libraries(image PRIVATE JPEG::JPEG)
  endif ()

  if (MPI_C_FOUND)
    target_link_libraries(image PRIVATE MPI::MPI_C)
  endif ()
endif ()

Declare OpenGL dependency in 'image' plug-in
Declare OpenGL dependency in 'image' plug-in
