CMake build/Qt6: Automatically disable build of profilers

Tracing library does not build with Qt 6. Disable that automatically
and also the plugins that depend on it. Add some feature info for
the Tracing library, though we usually do not add feature information
for libraries in general.

Change-Id: I51b6993e30ec69d63a031c7bf404ea3887e14d84
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Eike Ziller
2021-03-05 12:28:41 +01:00
parent 69afdcd290
commit 30da5aafd7
5 changed files with 10 additions and 1 deletions

View File

@@ -5,6 +5,8 @@ if (WITH_TESTS)
endif()
add_qtc_library(Tracing
CONDITION Qt5_VERSION VERSION_LESS 6.0.0
FEATURE_INFO
DEPENDS Utils Qt5::Qml Qt5::Quick
PUBLIC_DEPENDS Qt5::Widgets
SOURCES ${TEST_SOURCES}