Skip to content

Commit f4616ce

Browse files
committed
Add "Build with CMake" section
1 parent 8de1815 commit f4616ce

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,28 @@ It should be able to validate strings using less than 1 cycle per input byte.
3636
upgrade binutils to version 2.30 or better under Linux) or use an older
3737
compiler matching the capabilities of your assembler.
3838

39+
## Build with CMake
40+
41+
```
42+
cmake -B build
43+
cmake --build build
44+
cd build
45+
ctest .
46+
```
47+
48+
Visual Studio users must specify whether they want to build the Release or Debug
49+
version.
50+
51+
To run benchmarks, build and execute the `bench` command.
52+
53+
```
54+
cmake -B build
55+
cmake --build build
56+
./build/benchmarks/bench
57+
```
58+
59+
Instructions are similar for Visual Studio users.
60+
3961
## Real-word usage
4062

4163
This C++ library is part of the JavaScript package

0 commit comments

Comments
 (0)