Skip to content

Commit

Permalink
xo-ratio: update README.md for xo-build
Browse files Browse the repository at this point in the history
  • Loading branch information
Rconybea committed Sep 14, 2024
1 parent 102fbf4 commit d18e9af
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,34 @@ Relative to `boost::ratio`:
- [github/rconybea/xo-indentlog](https://github.com/Rconybea/xo-indentlog) logging (used by unit tests)
- [github/rconybea/xo-randomgen](https://github.com/Rconybea/xo-randomgen) rng (used by unit tests)

### clone xo-ratio
### copy repository locally

Using `xo-build` (provided by `xo-cmake`):
```
$ xo-build --clone xo-ratio`
```

or equivalently:
```
$ cd ~/proj # for example
$ git clone https://github.com/Rconybea/xo-ratio
```

### build + install

Using `xo-build`:
```
$ xo-build --configure --build --install xo-ratio
```

or equivalently:
```
$ cd xo-ratio
$ PREFIX=/usr/local # for example
$ BUILDDIR=.build # for example
$ mkdir ${BUILDDIR}
$ cmake --build .build
$ cmake --install .build
$ mkdir xo-ratio/${BUILDDIR}
$ cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} -S xo-ratio -B xo-ratio/${BUILDDIR}
$ cmake --build xo-ratio/${BUILDDIR}
$ cmake --install xo-ratio/${BUILDDIR}
```

### build with unit test coverage
Expand Down

0 comments on commit d18e9af

Please sign in to comment.