Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid awkward 'pixi run run' #10

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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