Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
6.5.6, 6.8
-
None
-
testing in Windows 11 / 64
Description
*REPORTED PROBLEM*
in cmakelist.txt cannot include QML files which starts with ../ relative path
for example
qt_add_qml_module(test
QML_FILES
../test/resource/Main.qml
)
*HOW TO REPRODUCE THE PROBLEM*
cmake_minimum_required(VERSION 3.16)
project(test VERSION 1.28 LANGUAGES CXX DESCRIPTION "test")
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
....
.....
qt_add_qml_module(test
VERSION 1.28
URI "testmod"
RESOURCE_PREFIX "/"
QML_FILES
../test/resource/Main.qml
)
set_target_properties(test
PROPERTIES
QT_QML_CACHEGEN_ARGUMENTS "--direct-calls")
etc.
then, when compiling QML files QtCreator 13.01 generates these errors :
Error creating directory "D:/bin/test/windows/64/.rcc/qmlcache/testmod_../test/resource".
jom: D:\bin\test\windows\64\CMakeFiles\testmod.dir\build.make [.rcc\qmlcache\guimod_..\test\resource\main_qml.cpp] Error 1
Error creating directory "D:/bin/test/windows/64/.rcc/qmlcache/testmod_../test/resource/qmlpage".
REQUEST
Someone knows a solution to add QML files with ../ relative path ? Thank you !