OlivierLDff / Qaterial

🧩 Collection of Material Components based on QtQuickControls2.
https://olivierldff.github.io/Qaterial/
MIT License
300 stars 57 forks source link

🔧 CMake: generate `qmldir` out of source tree to keep it read-only #156

Closed OlivierLDff closed 5 months ago

OlivierLDff commented 5 months ago

Old behavior can be restored with -DQATERIAL_ENABLE_GEN_QMLDIR_BINARY_DIR=OFF if you want to do hot reload for example Best would be to include a script to generate the in source qmldir without requiring a cmake config.

This PR also disable UNITY_BUILD for QaterialComponents, that could get conflict issue with generated files.