forked from qt-creator/qt-creator
Restore support for CMake < 3.11
Prior to CMake 3.11, the SOURCES could not be omitted when calling add_executable. This change ensures that SOURCES are passed, at least when building against Qt < 6.2. Change-Id: I83bd82fe12364523ce6954d145b632df7210d118 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -32,17 +32,13 @@ set(TRACING_CPP_SOURCES
|
||||
tracing_global.h
|
||||
)
|
||||
|
||||
add_qtc_library(Tracing
|
||||
FEATURE_INFO
|
||||
DEPENDS Utils Qt5::Qml Qt5::Quick
|
||||
PUBLIC_DEPENDS Qt5::Widgets
|
||||
SOURCES
|
||||
${TEST_SOURCES}
|
||||
)
|
||||
|
||||
if(${Qt5_VERSION} VERSION_LESS "6.2.0")
|
||||
extend_qtc_library(Tracing
|
||||
add_qtc_library(Tracing
|
||||
FEATURE_INFO
|
||||
DEPENDS Utils Qt5::Qml Qt5::Quick
|
||||
PUBLIC_DEPENDS Qt5::Widgets
|
||||
SOURCES
|
||||
${TEST_SOURCES}
|
||||
${TRACING_CPP_SOURCES}
|
||||
qml/tracing.qrc
|
||||
)
|
||||
@@ -51,6 +47,14 @@ else() # < Qt 6.2
|
||||
return()
|
||||
endif()
|
||||
|
||||
add_qtc_library(Tracing
|
||||
FEATURE_INFO
|
||||
DEPENDS Utils Qt5::Qml Qt5::Quick
|
||||
PUBLIC_DEPENDS Qt5::Widgets
|
||||
SOURCES
|
||||
${TEST_SOURCES}
|
||||
)
|
||||
|
||||
set(TRACING_QML_FILES
|
||||
qml/ButtonsBar.qml
|
||||
qml/CategoryLabel.qml
|
||||
|
||||
Reference in New Issue
Block a user