diff --git a/src/plugins/perfprofiler/CMakeLists.txt b/src/plugins/perfprofiler/CMakeLists.txt index d83e9e65523..e1ee249ed04 100644 --- a/src/plugins/perfprofiler/CMakeLists.txt +++ b/src/plugins/perfprofiler/CMakeLists.txt @@ -48,10 +48,6 @@ if(${Qt5_VERSION} VERSION_LESS "6.2.0") perfprofiler.qrc ) else() # < Qt 6.2 - if (NOT TARGET PerfProfiler) - return() - endif() - add_qtc_plugin(PerfProfiler DEPENDS Tracing Qt5::QuickWidgets PLUGIN_DEPENDS Core Debugger ProjectExplorer QtSupport @@ -59,6 +55,10 @@ else() # < Qt 6.2 ${TEST_SOURCES} ) + if (NOT TARGET PerfProfiler) + return() + endif() + qt_add_resources(PerfProfiler perfprofiler PREFIX "/perfprofiler" tracepoints.sh diff --git a/src/plugins/qmlprofiler/CMakeLists.txt b/src/plugins/qmlprofiler/CMakeLists.txt index c5fa5399f86..aee047a576d 100644 --- a/src/plugins/qmlprofiler/CMakeLists.txt +++ b/src/plugins/qmlprofiler/CMakeLists.txt @@ -79,10 +79,6 @@ if(${Qt5_VERSION} VERSION_LESS "6.2.0") qml/qmlprofiler.qrc ) else() # < Qt 6.2 - if (NOT TARGET QmlProfiler) - return() - endif() - add_qtc_plugin(QmlProfiler DEPENDS QmlDebug QmlJS Tracing Qt5::QuickWidgets PLUGIN_DEPENDS Core Debugger ProjectExplorer QtSupport TextEditor @@ -90,6 +86,10 @@ else() # < Qt 6.2 ${TEST_SOURCES} ) + if (NOT TARGET QmlProfiler) + return() + endif() + set(QMLPROFILER_QML_FILES qml/QmlProfilerFlameGraphView.qml )