From d18e9afc1d43625700513aff4f2ed114618faf36 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sat, 14 Sep 2024 10:55:31 -0500 Subject: [PATCH] xo-ratio: update README.md for xo-build --- README.md | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d4104014..33a2a155 100644 --- a/README.md +++ b/README.md @@ -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