Warning, /graphics/digikam/core/cmake/rules/RulesQtFramework.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(Qt${QT_VERSION_MAJOR} REQUIRED
0008              NO_MODULE COMPONENTS
0009              Core
0010              Concurrent
0011              Widgets
0012              Gui
0013              Sql
0014              Xml
0015              PrintSupport
0016              Network
0017              NetworkAuth
0018              Svg
0019 )
0020 
0021 if(ENABLE_QWEBENGINE)
0022 
0023     find_package(Qt${QT_VERSION_MAJOR} REQUIRED
0024                                        NO_MODULE
0025                                        COMPONENTS
0026                                        WebEngineWidgets
0027     )
0028 
0029 else()
0030 
0031     find_package(Qt${QT_VERSION_MAJOR} REQUIRED
0032                                        NO_MODULE
0033                                        COMPONENTS
0034                                        WebKitWidgets
0035     )
0036 
0037 endif()
0038 
0039 find_package(Qt${QT_VERSION_MAJOR}
0040              OPTIONAL_COMPONENTS
0041              DBus
0042              OpenGL
0043 )
0044 
0045 if(Qt6_FOUND)
0046 
0047     find_package(Qt${QT_VERSION_MAJOR} REQUIRED
0048                  NO_MODULE COMPONENTS
0049                  StateMachine
0050                  SvgWidgets
0051     )
0052 
0053     find_package(Qt${QT_VERSION_MAJOR}
0054                  OPTIONAL_COMPONENTS
0055                  OpenGLWidgets
0056     )
0057 
0058 else()
0059 
0060     find_package(Qt${QT_VERSION_MAJOR}
0061                  OPTIONAL_COMPONENTS
0062                  XmlPatterns                # For Rajce plugin
0063     )
0064 
0065 endif()
0066 
0067 if(ENABLE_DBUS)
0068 
0069     if(NOT Qt${QT_VERSION_MAJOR}DBus_FOUND)
0070 
0071         set(ENABLE_DBUS OFF)
0072 
0073     endif()
0074 
0075 endif()
0076 
0077 # Qt Dependencies For unit tests and CLI test tools
0078 
0079 if(BUILD_TESTING)
0080 
0081     find_package(Qt${QT_VERSION_MAJOR} REQUIRED
0082                                        NO_MODULE
0083                                        COMPONENTS
0084                                        Test
0085     )
0086 
0087     find_package(Qt${QT_VERSION_MAJOR}
0088                  QUIET
0089                  OPTIONAL_COMPONENTS
0090                  Qml WebView  # Optional, for 'sialis' O2 library test tool.
0091     )
0092 
0093 endif()