|
Download examples/cmake-dataflow/README.md from TomPei/csg-robomaster: direct link, hf CLI and curl.
- Browser
- Download file 702 Bytes
-
https://huggingface.co/datasets/TomPei/csg-robomaster/resolve/main/examples/cmake-dataflow/README.md
- Command line
-
hf download hf://datasets/TomPei/csg-robomaster/examples/cmake-dataflow/README.md
-
curl -L -o README.md https://huggingface.co/datasets/TomPei/csg-robomaster/resolve/main/examples/cmake-dataflow/README.md
702 Bytes
| # Dora CMake Dataflow Example | |
| This example shows how to create dora operators and custom nodes in CMake build system. | |
| See also [c++-example](https://github.com/dora-rs/dora/blob/main/examples/c%2B%2B-dataflow/README.md) for the implementation details of operator and node. | |
| ## Compile and Run | |
| To try it out, you can use the [`run.rs`](./run.rs) binary. It performs all required build steps and then starts the dataflow. Use the following command to run it: `cargo run --example cmake-dataflow`. | |
| ## Out-of-tree compile | |
| This example also can be ran in a separate root directory. | |
| ``` | |
| cd <path-to-cmake-dataflow> | |
| mkdir build | |
| cd build && cmake .. | |
| make install | |
| cd .. | |
| dora up | |
| dora start dataflow.yml | |
| ``` | |