Skip to content

Commit a8cb0fd

Browse files
committed
README.md: explain how to build and install with cmake [minor]
1 parent 9fffb25 commit a8cb0fd

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,28 @@ You'll probably need a decent ncurses library to get this to work. I
1616
have provided a binary that depends on ncurses 4.2 & glibc6.
1717

1818
### Building and installing cmatrix
19-
To install cmatrix, in the cmatrix directory run:
19+
To install cmatrix, use either of the following methods from within the cmatrix directory.
20+
21+
#### using `configure`
2022
```
2123
./configure
2224
make
2325
make install
2426
```
2527

28+
#### using CMake
29+
Here we also show an out-of-source build in the sub directory "build".
30+
```
31+
mkdir -p build
32+
cd build
33+
# to install to "/usr/local"
34+
cmake ..
35+
# or to install to "/usr"
36+
#cmake -DCMAKE_INSTALL_PREFIX=/usr ..
37+
make
38+
make install
39+
```
40+
2641
### Running cmatrix
2742
After you have installed cmatrix just run `cmatrix` to run cmatrix :)
2843

0 commit comments

Comments
 (0)