#/*============================================================================
#
#  IMAGECAPTURE: A software package for capturing images from input devices and rendering to vide outputs.
#
#  Copyright (c) University College London (UCL). All rights reserved.
#
#  This software is distributed WITHOUT ANY WARRANTY; without even
#  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
#  PURPOSE.
#
#  See LICENSE.txt in the top level directory for details.
#
#============================================================================*/

option(BUILD_UNITY_WRAPPER "Build Unity Wrapper." OFF)

if(BUILD_UNITY_WRAPPER AND BUILD_SHARED_LIBS)
  set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build Shared Libraries" FORCE)
  message("Forcing BUILD_SHARED_LIBS to OFF as you want a Unity module.")
endif()

if(BUILD_UNITY_WRAPPER)
  set(IMAGECAPTURE_UNITY_PLUGIN_DIR "" CACHE PATH "Path to Unity project Assets dir")
  if( "${IMAGECAPTURE_UNITY_PLUGIN_DIR}" STREQUAL "")
    message(FATAL_ERROR "If you turn BUILD_UNITY_WRAPPER, you must specify IMAGECAPTURE_UNITY_PLUGIN_DIR.")
  endif()
endif()
