From a8cb0fde6f2ca18f3298dbf4f28c8f40c4cf8464 Mon Sep 17 00:00:00 2001 From: hoijui Date: Thu, 19 Oct 2017 09:47:31 +0200 Subject: [PATCH] README.md: explain how to build and install with cmake [minor] --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 57e6aa3..32af717 100755 --- a/README.md +++ b/README.md @@ -16,13 +16,28 @@ You'll probably need a decent ncurses library to get this to work. I have provided a binary that depends on ncurses 4.2 & glibc6. ### Building and installing cmatrix -To install cmatrix, in the cmatrix directory run: +To install cmatrix, use either of the following methods from within the cmatrix directory. + +#### using `configure` ``` ./configure make make install ``` +#### using CMake +Here we also show an out-of-source build in the sub directory "build". +``` +mkdir -p build +cd build +# to install to "/usr/local" +cmake .. +# or to install to "/usr" +#cmake -DCMAKE_INSTALL_PREFIX=/usr .. +make +make install +``` + ### Running cmatrix After you have installed cmatrix just run `cmatrix` to run cmatrix :)