forked from qt-creator/qt-creator
Tests that create a QApplication need to be started with "-platform minimal" so that they won't fail on build servers without Display. This also keeps them from distracting you if you run them while working. Change-Id: I05df258b2204a3abd3cdea446d6a52f3e57a4a62 Reviewed-by: David Schulz <david.schulz@qt.io>
26 lines
552 B
CMake
26 lines
552 B
CMake
set(TSTFLAMEGRAPHVIEW_CPP_SOURCES
|
|
testflamegraphmodel.h
|
|
tst_flamegraphview.cpp
|
|
)
|
|
|
|
add_qtc_test(tst_tracing_flamegraphview
|
|
NEEDS_GUI
|
|
EXCLUDE_FROM_PRECHECK
|
|
DEPENDS Tracing Qt::QuickWidgets Qt::Quick Utils
|
|
)
|
|
|
|
if (NOT TARGET tst_tracing_flamegraphview) # qt_add_qml_module has no DEPENDS check
|
|
return()
|
|
endif()
|
|
|
|
qt_add_qml_module(tst_tracing_flamegraphview
|
|
URI "QtCreator.TstTracingFlameGraphView"
|
|
VERSION "1.0"
|
|
NO_PLUGIN
|
|
RESOURCE_PREFIX "/qt/qml"
|
|
QML_FILES
|
|
TestFlameGraphView.qml
|
|
SOURCES
|
|
${TSTFLAMEGRAPHVIEW_CPP_SOURCES}
|
|
)
|