forked from xavi/libweb
README.md: Add install instructions
This commit is contained in:
parent
9315328983
commit
6a72955270
17
README.md
17
README.md
|
@ -83,6 +83,15 @@ slweb/libslweb.a:
|
|||
+cd slweb && $(MAKE)
|
||||
```
|
||||
|
||||
Additionally, `slweb` can be installed using the `install` target. A
|
||||
custom prefix can be assigned via the `PREFIX` variable:
|
||||
|
||||
```sh
|
||||
$ make PREFIX=$HOME/slweb-prefix install
|
||||
```
|
||||
|
||||
By default, `PREFIX` is assigned to `/usr/local`.
|
||||
|
||||
#### CMake
|
||||
|
||||
```sh
|
||||
|
@ -103,6 +112,14 @@ add_subdirectory(slweb)
|
|||
target_link_libraries(${PROJECT_NAME} PRIVATE slweb)
|
||||
```
|
||||
|
||||
Additionally, `slweb` can be installed using the standard procedure
|
||||
in CMake. As usual, a custom prefix can be assigned via the
|
||||
`CMAKE_INSTALL_PREFIX` variable:
|
||||
|
||||
```sh
|
||||
$ cmake --install build/ -DCMAKE_INSTALL_PREFIX=$HOME/slweb-prefix
|
||||
```
|
||||
|
||||
### Examples
|
||||
|
||||
[A directory](examples) with examples shows how `slweb` can be used by
|
||||
|
|
Loading…
Reference in New Issue