Tracing: Restore support for Qt >= 6.2

First (try to) add the "Tracing" target as Qt Creator library, *then*
check whether it exists.

amends: f29d7b896f

Change-Id: I931e3ff632324faf4c6e07e8e083f00c55df197f
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2021-07-16 09:20:41 +02:00
parent 4a08edf78d
commit 5aff1419fa

View File

@@ -43,10 +43,6 @@ if(${Qt5_VERSION} VERSION_LESS "6.2.0")
qml/tracing.qrc qml/tracing.qrc
) )
else() # < Qt 6.2 else() # < Qt 6.2
if (NOT TARGET Tracing)
return()
endif()
add_qtc_library(Tracing add_qtc_library(Tracing
FEATURE_INFO FEATURE_INFO
DEPENDS Utils Qt5::Qml Qt5::Quick DEPENDS Utils Qt5::Qml Qt5::Quick
@@ -55,6 +51,10 @@ else() # < Qt 6.2
${TEST_SOURCES} ${TEST_SOURCES}
) )
if (NOT TARGET Tracing)
return()
endif()
set(TRACING_QML_FILES set(TRACING_QML_FILES
qml/ButtonsBar.qml qml/ButtonsBar.qml
qml/CategoryLabel.qml qml/CategoryLabel.qml