tst_baseline_painting and tst_qpdfwriter rely on QT_FEATURE_pdf being enabled, without making it a condition to build the tests. Don't build the tests with PDF disabled. Task-number: QTBUG-122137 Pick-to: 6.7 6.6 6.5 Change-Id: Idbf03f30557618c83e946a80b7759cd4f6978ad5 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
12 lines
326 B
CMake
12 lines
326 B
CMake
# Copyright (C) 2022 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
if(TARGET Qt::Gui AND TARGET Qt::Network AND QT_FEATURE_pdf)
|
|
add_subdirectory(painting)
|
|
endif()
|
|
if(TARGET Qt::Network AND TARGET Qt::Widgets)
|
|
add_subdirectory(widgets)
|
|
add_subdirectory(stylesheet)
|
|
add_subdirectory(text)
|
|
endif()
|