Documenting cmake.

This commit is contained in:
Daniel Lemire 2018-12-28 13:18:00 -05:00
parent 386bebb33b
commit 2b3d6f6ae4
1 changed files with 13 additions and 0 deletions

View File

@ -120,6 +120,19 @@ While in the project repository, do the following:
mkdir build
cd build
cmake ..
make
make test
```
CMake will build a library. By default, it builds a shared library (e.g., libsimdjson.so on Linux).
You can build a static library:
```
mkdir buildstatic
cd buildstatic
cmake -DSIMDJSON_BUILD_STATIC=ON ..
make
make test
```