# Copyright (C) 2006-2021 Istituto Italiano di Tecnologia (IIT)
# All rights reserved.
#
# This software may be modified and distributed under the terms of the
# BSD-3-Clause license. See the accompanying LICENSE file for details.

project(YARP_cv)

# OpenCV is required, otherwise the OpenCV_INCLUDE_DIR and OpenCV_LIBRARIES
# (used in the CMakeLists.txt file in the src direcrory) are not expanded).
# FIXME Remove this check when OpenCV targets will be used.
if (NOT YARP_HAS_OpenCV)
  return()
endif()

add_subdirectory(src)

include(YarpInstallBasicPackageFiles)
yarp_install_basic_package_files(YARP_cv
                                 DEPENDENCIES ${YARP_cv_PUBLIC_DEPS}
                                 PRIVATE_DEPENDENCIES ${YARP_cv_PRIVATE_DEPS})
