Skip to content

Commit

Permalink
Merge pull request #10 from rerun-io/jleibs/pixi_run_example
Browse files Browse the repository at this point in the history
Avoid awkward 'pixi run run'
  • Loading branch information
Wumpf authored Oct 30, 2023
2 parents 84271e6 + 6576df9 commit 4004761
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Just type `rerun` and the rerun viewer should show up. Then it is time to run th
The easiest way to get started is to install [pixi](https://prefix.dev/docs/pixi/overview).

* Start the rerun viewer with `rerun` (see above)
* Run the example with `pixi run run`
* Run the example with `pixi run example`


### Manually
Expand Down
10 changes: 5 additions & 5 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# https://prefix.dev/docs/pixi/overview
#
# Use `pixi task list` to list the available tasks,
# and `pixi run TASK` to run it (e.g. `pixi run run`).
# and `pixi run TASK` to run it (e.g. `pixi run example`).

[project]
name = "rerun_cpp_example_opencv_eigen"
Expand All @@ -32,7 +32,7 @@ prepare = "cmake -G 'Visual Studio 17 2022' -B build -S . -DCMAKE_BUILD_TYPE=Rel
build = { cmd = "cmake --build build --config RelWithDebInfo", depends_on = [
"prepare",
] }
run = { cmd = "build/RelWithDebInfo/rerun_ext_example.exe", depends_on = [
example = { cmd = "build/RelWithDebInfo/rerun_ext_example.exe", depends_on = [
"build",
] }

Expand All @@ -41,22 +41,22 @@ prepare = "cmake -G 'Ninja' -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo"
build = { cmd = "cmake --build build --config RelWithDebInfo --target all", depends_on = [
"prepare",
] }
run = { cmd = "build/rerun_ext_example", depends_on = ["build"] }
example = { cmd = "build/rerun_ext_example", depends_on = ["build"] }


[target.osx-64.tasks]
prepare = "cmake -G 'Ninja' -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo"
build = { cmd = "cmake --build build --config RelWithDebInfo --target all", depends_on = [
"prepare",
] }
run = { cmd = "build/rerun_ext_example", depends_on = ["build"] }
example = { cmd = "build/rerun_ext_example", depends_on = ["build"] }

[target.osx-arm64.tasks]
prepare = "cmake -G 'Ninja' -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo"
build = { cmd = "cmake --build build --config RelWithDebInfo --target all", depends_on = [
"prepare",
] }
run = { cmd = "build/rerun_ext_example", depends_on = ["build"] }
example = { cmd = "build/rerun_ext_example", depends_on = ["build"] }

[dependencies]
# Build tools:
Expand Down

0 comments on commit 4004761

Please sign in to comment.