Warning, /graphics/digikam/core/cmake/rules/RulesLibgphoto2.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 find_package(Gphoto2)
0008
0009 if(Gphoto2_FOUND)
0010
0011 if("${GPHOTO2_VERSION_STRING}" VERSION_GREATER "2.4.0")
0012
0013 set(VERSION_GPHOTO2 true)
0014
0015 else()
0016
0017 set(VERSION_GPHOTO2 false)
0018
0019 endif()
0020
0021 if("${GPHOTO2_VERSION_STRING}" VERSION_GREATER "2.5.0")
0022
0023 set(VERSION_GPHOTO25 true)
0024 message(STATUS "libgphoto2 API version >= 2.5")
0025
0026 else()
0027
0028 set(VERSION_GPHOTO25 false)
0029 message(STATUS "libgphoto2 API version < 2.5")
0030
0031 endif()
0032
0033 if(VERSION_GPHOTO25)
0034
0035 set(HAVE_GPHOTO25 1)
0036
0037 else()
0038
0039 set(HAVE_GPHOTO25 0)
0040
0041 endif()
0042
0043 endif()