Warning, /graphics/digikam/core/cmake/rules/RulesLibOpenCV.cmake is written in an unsupported language. File is not indexed.

0001 #
0002 # SPDX-FileCopyrightText: 2010-2024 by Gilles Caulier, <caulier dot gilles at gmail dot com>
0003 #
0004 # SPDX-License-Identifier: BSD-3-Clause
0005 #
0006 
0007 DETECT_OPENCV(${OPENCV_MIN_VERSION} core
0008                                     objdetect
0009                                     imgproc
0010                                     imgcodecs
0011                                     dnn
0012                                     flann
0013 )
0014 
0015 if(${OpenCV_FOUND})
0016 
0017     if(${OpenCV_VERSION} VERSION_LESS ${OPENCV_MIN_VERSION})
0018 
0019         message(STATUS "OpenCV < ${OPENCV_MIN_VERSION} have been found. Please use a more recent version.")
0020         set(OpenCV_FOUND FALSE)
0021 
0022     endif()
0023 
0024 endif()
0025 
0026 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/app/utils/digikam_opencv.h.cmake.in
0027                ${CMAKE_CURRENT_BINARY_DIR}/app/utils/digikam_opencv.h)
0028 
0029 include_directories(${OpenCV_INCLUDE_DIRS})