forked from qt-creator/qt-creator
QmlDesigner: Fix for builds in default MCU project
Task-number: QDS-6599 Change-Id: I77d7f6f8a0df8a9992956d5d23d2e219c1e4f077 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -40,12 +40,14 @@ qul_add_qml_module(ConstantsModule
|
||||
imports/Constants/Constants.qml
|
||||
)
|
||||
|
||||
# Using recurse search to find all qml files in project directory
|
||||
# Excluding Constants folder because it is part of another qml module
|
||||
# Excluding MCUDefaultStyle because it exists for compatibility purposes with QDS
|
||||
message(WARNING "It is recommended to replace the recursive search with the actual list of .qml files in your project.")
|
||||
file(GLOB_RECURSE qmlSources "*.qml")
|
||||
# Excluding Constants folder because it is part of another qml module
|
||||
list(FILTER qmlSources EXCLUDE REGEX ".*/imports/Constants/.*")
|
||||
# Excluding MCUDefaultStyle because it exists for compatibility purposes with QDS
|
||||
list(FILTER qmlSources EXCLUDE REGEX ".*/MCUDefaultStyle/.*")
|
||||
# Excluding binary directory because it can break builds in source dir
|
||||
list(FILTER qmlSources EXCLUDE REGEX "${CMAKE_CURRENT_BINARY_DIR}/.*")
|
||||
qul_target_qml_sources(%{ProjectName} ${qmlSources})
|
||||
|
||||
if (Qul_VERSION VERSION_GREATER_EQUAL "2.0")
|
||||
|
Reference in New Issue
Block a user