Module URI different than folder structure in cmake
Unsolved
General and Desktop
-
In the "Building a reusable QML module" documentation it says
"The subdirectories are structured to correspond to the QML module’s URI, but with the dots replaced by slashes. That’s the same logic the engine uses when it searches for a module in the import paths. Following this subdirectory structure helps tooling." (https://doc.qt.io/qt-6/cmake-build-reusable-qml-module.html)
Does that mean that there is no way i can have my URI different from my folder structure?
What i want to have is something like this:
/app
/CMakeLists.txt
/main.qml
/modules/module1/CmakeLists.txt
/modules/module1/.qml/.cpp/*.hand in my main.qml i want to import the following:
import AppName.Module1 // Do stuff with that