add flags to readme

This commit is contained in:
Latysheva Alexandra 2020-10-11 17:02:47 +06:00 committed by GitHub
parent 7750b43c56
commit 77c44f9c87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,15 +8,17 @@ You should make sure the libtiff submodule is cloned.
## Usage
#### build:
#### Build:
```
mkdir -p build && cd build && \
cmake .. -DSAPI_ROOT=/path/to/sapi_root -DBUILD_SHARED_LIBS=OFF
make -j8
```
#### to run the sandboxed example:
`./example/sandboxed /absolute/path/to/project/dir`
#### Example:
You should add `-DTIFF_SAPI_ENABLE_EXAMPLES=ON` to use the example.\
run: `./example/sandboxed /absolute/path/to/project/dir`
#### to run tests:
`./test/tests`
#### Tests:
You should add `-DTIFF_SAPI_ENABLE_TESTS=ON` to use tests.\
run: `./test/tests`