dora-rs / dora

DORA (Dataflow-Oriented Robotic Application) is middleware designed to streamline and simplify the creation of AI-based robotic applications. It offers low latency, composable, and distributed dataflow capabilities. Applications are modeled as directed graphs, also referred to as pipelines.
https://dora-rs.ai
Apache License 2.0
1.36k stars 69 forks source link

Fix out-of-tree builds in cmake example #453

Closed phil-opp closed 3 months ago

phil-opp commented 3 months ago

See https://github.com/dora-rs/dora/issues/446#issuecomment-2028002267

phil-opp commented 3 months ago

@XxChang Could you take a quick look whether these changes are correct and complete?

XxChang commented 3 months ago

@XxChang Could you take a quick look whether these changes are correct and complete?

Please replace

    add_custom_command(OUTPUT ${node_bridge} ${dora_cxx_include_dir} ${operator_bridge}
        WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/dora/src/Dora/target/debug
        DEPENDS Dora

with

    add_custom_command(OUTPUT ${node_bridge} ${dora_cxx_include_dir} ${operator_bridge}
        WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/dora/src/Dora/target
        DEPENDS Dora

then all things work,

Sorry about that.

phil-opp commented 3 months ago

Thanks for checking!