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 ## Usage
#### build: #### Build:
``` ```
mkdir -p build && cd build && \ mkdir -p build && cd build && \
cmake .. -DSAPI_ROOT=/path/to/sapi_root -DBUILD_SHARED_LIBS=OFF cmake .. -DSAPI_ROOT=/path/to/sapi_root -DBUILD_SHARED_LIBS=OFF
make -j8 make -j8
``` ```
#### to run the sandboxed example: #### Example:
`./example/sandboxed /absolute/path/to/project/dir` You should add `-DTIFF_SAPI_ENABLE_EXAMPLES=ON` to use the example.\
run: `./example/sandboxed /absolute/path/to/project/dir`
#### to run tests: #### Tests:
`./test/tests` You should add `-DTIFF_SAPI_ENABLE_TESTS=ON` to use tests.\
run: `./test/tests`