Warning, /graphics/digikam/core/cmake/rules/RulesFindQtCore.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 if(BUILD_WITH_QT6)
0008 
0009     set(QT_DEFAULT_MAJOR_VERSION 6)
0010     find_package(Qt6 ${QT6_MIN_VERSION} REQUIRED COMPONENTS Core)
0011 
0012     set(QT_VERSION       ${Qt6Core_VERSION})
0013     set(QT_MIN_VERSION   ${QT6_MIN_VERSION})
0014     set(QT_VERSION_MAJOR 6)
0015 
0016 else()
0017 
0018     set(QT_DEFAULT_MAJOR_VERSION 5)
0019     find_package(Qt5 ${QT5_MIN_VERSION} REQUIRED COMPONENTS Core)
0020 
0021     set(QT_VERSION       ${Qt5Core_VERSION})
0022     set(QT_MIN_VERSION   ${QT5_MIN_VERSION})
0023     set(QT_VERSION_MAJOR 5)
0024 
0025 endif()
0026 
0027 message(STATUS "Suitable Qt${QT_VERSION_MAJOR} >= ${QT_MIN_VERSION} detected: '${QT_VERSION}'.")