Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
README.md: Update build instructions for cmake (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-scheck authored Oct 2, 2022
1 parent 3f74d0c commit ebe53fd
Showing 1 changed file with 32 additions and 3 deletions.
35 changes: 32 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,40 @@ librem is using GNU makefiles, and [libre](https://github.com/baresip/re)
must be installed before building.


### Build with default options
### Build with debug enabled

```
$ make
$ sudo make install
$ cmake -B build
$ cmake --build build -j
$ sudo cmake --install build
$ sudo ldconfig
```

On some distributions, /usr/local/lib may not be included in ld.so.conf.
You can check with `grep "/usr/local/lib" /etc/ld.so.conf.d/*.conf`
and add if necessary:

```
$ echo "/usr/local/lib" | sudo tee /etc/ld.so.conf.d/libc.conf
$ sudo ldconfig
```


### Build with release

```
$ cmake -B build -DCMAKE_BUILD_TYPE=Release
$ cmake --build build -j
$ sudo cmake --install build
$ sudo ldconfig
```

### Build with clang compiler

```
$ cmake -B build -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
$ cmake --build build -j
$ sudo cmake --install build
$ sudo ldconfig
```

Expand Down

0 comments on commit ebe53fd

Please sign in to comment.