Skip to content

Commit e55cfac

Browse files
committed
doc
1 parent 7b3f9fe commit e55cfac

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

demos/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ and link with any curses library; e.g., "cc -orain rain.c -lcurses".
1717
There are no dependencies besides curses and the standard C library, and
1818
no configuration is needed.
1919

20+
To use CMake, assuming the main PDcurses has been built and installed:
21+
22+
```sh
23+
cmake -S demos -B demos/build -DPDCurses_ROOT=/path/to/pdcurses
24+
25+
cmake --build demos/build
26+
```
2027

2128
Distribution Status
2229
-------------------

docs/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,21 @@ Also consult the README for each specific platform you'll be using:
2121
Building
2222
--------
2323

24+
The PDcurses library can be built for Unix-like systems and Windows via Makefiles
25+
or CMake.
26+
To build with CMake:
27+
28+
```sh
29+
cmake -B build
30+
cmake --build build
31+
```
32+
33+
optionally, install the library binary and headers:
34+
35+
```sh
36+
cmake --install build --prefix /path/to/install
37+
```
38+
2439
- To rebuild MANUAL.md from the "man page" sections of the source code,
2540
type "./mkman.sh". Needs a Unix-like shell and a Python interpreter.
2641

0 commit comments

Comments
 (0)