2022-07-05 13:26:52 +02:00
|
|
|
# Copyright (C) 2022 The Qt Company Ltd.
|
2022-08-19 15:21:34 +02:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2022-07-05 13:26:52 +02:00
|
|
|
|
2020-11-30 18:46:49 +11:00
|
|
|
# Need an explicit call at the top level. This is the absolute minimum version
|
|
|
|
# needed to configure the project with any combination of enabled features.
|
|
|
|
# The call to qt_build_repo_begin() will upgrade policies further.
|
2021-07-06 17:55:30 +02:00
|
|
|
#
|
|
|
|
# The absolute minimum version for building Qt is 3.16 because for metatype.json generation, we
|
|
|
|
# depend on being able to find the location of json files created by AUTOMOC/moc.
|
2020-11-30 18:46:49 +11:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
2020-10-30 17:42:34 +01:00
|
|
|
|
2020-11-30 18:46:49 +11:00
|
|
|
# Get the repo version and CMake policy details
|
|
|
|
include(.cmake.conf)
|
|
|
|
|
2024-03-06 17:31:18 +01:00
|
|
|
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/QtBaseHelpers.cmake)
|
2021-12-23 13:20:21 +01:00
|
|
|
|
|
|
|
qt_internal_check_if_path_has_symlinks("${CMAKE_BINARY_DIR}")
|
2020-12-17 13:41:38 +01:00
|
|
|
|
2024-03-06 17:31:18 +01:00
|
|
|
# This needs to be called before the first project() call.
|
|
|
|
qt_internal_qtbase_run_autodetect()
|
2019-06-20 13:23:19 +02:00
|
|
|
|
2021-07-06 17:55:30 +02:00
|
|
|
# This call will load any provided cmake toolchain file.
|
2020-08-13 13:05:13 +03:00
|
|
|
project(QtBase
|
|
|
|
VERSION "${QT_REPO_MODULE_VERSION}"
|
|
|
|
DESCRIPTION "Qt Base Libraries"
|
|
|
|
HOMEPAGE_URL "https://qt.io/"
|
2025-04-30 12:44:30 +02:00
|
|
|
LANGUAGES CXX C
|
2020-08-13 13:05:13 +03:00
|
|
|
)
|
|
|
|
|
2025-04-30 12:44:30 +02:00
|
|
|
if(UNIX AND NOT ANDROID)
|
|
|
|
enable_language(ASM)
|
|
|
|
endif()
|
|
|
|
|
2024-03-26 10:03:31 +08:00
|
|
|
set(QT_BUILD_EXTRA_IDE_FILE_PATTERNS bin/* libexec/*)
|
|
|
|
|
2024-03-06 17:31:18 +01:00
|
|
|
qt_internal_qtbase_build_repo()
|