Warning, /graphics/digikam/project/bundles/3rdparty/ext_qt6/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # Script to build Qt6.
0002 #
0003 # Copyright (c) 2015-2024 by Gilles Caulier  <caulier dot gilles at gmail dot com>
0004 #
0005 # Redistribution and use is allowed according to the terms of the BSD license.
0006 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
0007 #
0008 
0009 SET(EXTPREFIX_qt ${EXTPREFIX})
0010 SET(QT_URL https://download.qt.io/official_releases/qt/6.5/6.5.3/single/qt-everywhere-src-6.5.3.tar.xz)
0011 SET(QT_HASH 755db0527410df135609b51defa1a689)
0012 
0013 IF(MSVC)
0014 
0015     # Windows with M$ Visual C++ compiler
0016 
0017     INCLUDE("config-qt6-windows.cmake")
0018 
0019     ExternalProject_Add(ext_qt6
0020         DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
0021 
0022         URL ${QT_URL}
0023         URL_MD5 ${QT_HASH}
0024 
0025         CONFIGURE_COMMAND <SOURCE_DIR>/configure ${QT_CONFIG}
0026 
0027         BUILD_COMMAND ${BUILD_CLI}
0028 
0029         UPDATE_COMMAND ""
0030         BUILD_IN_SOURCE 1
0031         ALWAYS 0
0032     )
0033 
0034 ELSE()
0035 
0036     # Linux with G++ compiler
0037 
0038     INCLUDE("config-qt6-linux.cmake")
0039 
0040     ExternalProject_Add(ext_qt6
0041         DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
0042 
0043         URL ${QT_URL}
0044         URL_MD5 ${QT_HASH}
0045 
0046         PATCH_COMMAND ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/qt6-openssl-linked.patch
0047 
0048         CMAKE_ARGS -DOPENSSL_LIBS='-l${EXTPREFIX}/local/lib/libssl.a -l${EXTPREFIX}/local/lib/libcrypto.a -lpthread -ldl'
0049                    -DOPENSSL_INCDIR='${EXTPREFIX}/local/include/openssl/'
0050                    -DOPENSSL_LIBDIR='${EXTPREFIX}/local/lib'
0051 
0052         CONFIGURE_COMMAND <SOURCE_DIR>/configure ${QT_CONFIG}
0053 
0054         # Compile with Ninja build framework.
0055         BUILD_COMMAND ninja
0056 
0057         INSTALL_COMMAND ninja install
0058 
0059         UPDATE_COMMAND ""
0060         BUILD_IN_SOURCE 1
0061         ALWAYS 0
0062     )
0063 
0064 ENDIF()