mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 22:04:56 +00:00
docs: frontends,dbal,txt (2 files)
This commit is contained in:
@@ -23,6 +23,13 @@ target_link_libraries(dbal-qml PRIVATE Qt6::Core Qt6::Gui Qt6::Quick)
|
||||
|
||||
qt_finalize_executable(dbal-qml)
|
||||
|
||||
if(NOT "${CMAKE_GENERATOR}" STREQUAL "Ninja")
|
||||
message(
|
||||
STATUS
|
||||
"dbal-qml is designed for Ninja; configure with `cmake -G Ninja` so the Conan Ninja toolchain is used."
|
||||
)
|
||||
endif()
|
||||
|
||||
install(TARGETS dbal-qml
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
||||
|
||||
25
frontends/dbal/qml/README.md
Normal file
25
frontends/dbal/qml/README.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# DBAL QML Player
|
||||
|
||||
This small Qt Quick app renders the `FrontPage.qml` guided hero and telemetry tiles.
|
||||
|
||||
## Dependencies
|
||||
|
||||
- We resolve Qt6 and Ninja via `conanfile.txt`.
|
||||
- `CMakeDeps` + `CMakeToolchain` expose the Ninja toolchain so `cmake -G Ninja` runs the same generator as Conan.
|
||||
|
||||
## Local build
|
||||
|
||||
```bash
|
||||
cd frontends/dbal/qml
|
||||
conan install . --output-folder=build --build=missing
|
||||
cmake -S . -B build -G Ninja
|
||||
cmake --build build
|
||||
./build/dbal-qml
|
||||
```
|
||||
|
||||
The `cmake` invocation purposely targets the Ninja generator and matches the toolchain that Conan emits.
|
||||
|
||||
## Notes
|
||||
|
||||
- The QML files are exposed via `qt_add_qml_module` and bundled together with the executable.
|
||||
- If you forget `-G Ninja`, the CMake script prints a reminder so you can reconfigure accordingly.
|
||||
Reference in New Issue
Block a user