qt5base-lts/tests/benchmarks/CMakeLists.txt
Johannes Kauffmann 30eac4a4f9 benchmarks: fix configuring with -no-feature-sql
With -no-feature-sql, CMake would error out because the target Qt6::Sql
didn't exist. Fix this by checking if the target exists.

Task-number: QTBUG-102480
Pick-to: 6.2 6.3 6.4
Change-Id: I411631acfd336ea699833954f86711067d160c04
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
2022-10-25 16:39:25 +02:00

25 lines
483 B
CMake

# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
# Generated from benchmarks.pro.
add_subdirectory(corelib)
if(TARGET Qt::DBus)
add_subdirectory(dbus)
endif()
if(TARGET Qt::Gui)
add_subdirectory(gui)
endif()
if(TARGET Qt::Network)
add_subdirectory(network)
endif()
if(TARGET Qt::Sql)
add_subdirectory(sql)
endif()
if(TARGET Qt::Test)
add_subdirectory(testlib)
endif()
if(TARGET Qt::Widgets)
add_subdirectory(widgets)
endif()