To allow building only tools that don't depend on QtNetwork library availability. Guard building of Assistant and Designer when QtNetwork is not available. Show a warning when Assistant or Designer can't be built due to QtNetwork missing. Fixes: QTBUG-127513 Change-Id: I638286cdd17ce2aff2ce990e7642cebe04b9baf9 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit 8e9a402c2ba666e932e2c6ef4dd69b1511b594ce) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
31 lines
870 B
CMake
31 lines
870 B
CMake
# Copyright (C) 2022 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
|
cmake_minimum_required(VERSION 3.16)
|
|
|
|
include(.cmake.conf)
|
|
project(QtTools
|
|
VERSION "${QT_REPO_MODULE_VERSION}"
|
|
DESCRIPTION "Qt Tools"
|
|
HOMEPAGE_URL "https://qt.io/"
|
|
LANGUAGES CXX C
|
|
)
|
|
|
|
# add platform specific compontents
|
|
set(optional_components "")
|
|
if(WIN32)
|
|
list(APPEND optional_components AxContainer)
|
|
endif()
|
|
|
|
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core)
|
|
find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS
|
|
DBus Network Xml Widgets Quick QuickWidgets Qml QmlLSPrivate
|
|
Sql PrintSupport OpenGL OpenGLWidgets ${optional_components})
|
|
qt_internal_project_setup()
|
|
|
|
qt_build_repo()
|
|
|
|
# Add tool dependencies that were deferred by qt_internal_add_docs.
|
|
qt_internal_add_deferred_dependencies()
|