Skip to content

Commit 7308406

Browse files
committed
Windows cmake - set_target_property qml_directory to enable QML-based apps.
1 parent 0aeb345 commit 7308406

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/LSLCMake.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,12 @@ function(installLSLApp target)
173173
findQtInstallationTool("windeployqt")
174174
install(CODE "
175175
message (STATUS \"Running windeployqt on $<TARGET_FILE:${target}>\")
176+
set(qml_dir $<TARGET_PROPERTY:${target},qml_directory>)
177+
message(STATUS \"qml directory: \${qml_dir}\")
176178
execute_process(
177-
COMMAND \"${QT_DEPLOYQT_EXECUTABLE}\" --no-translations
179+
COMMAND \"${QT_DEPLOYQT_EXECUTABLE}\"
180+
\$<\$<BOOL:\${qml_dir}>:--qmldir \${qml_dir}>
181+
--no-translations
178182
--no-system-d3d-compiler --no-opengl-sw
179183
--no-compiler-runtime --dry-run --list mapping
180184
\"$<TARGET_FILE:${target}>\"

0 commit comments

Comments
 (0)