Skip to content

Commit 0d38509

Browse files
Update README.md
1 parent 34ade8b commit 0d38509

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,21 @@ auto parsed{ MauUUID::UUID::FromString(str) };
2626
assert(parsed == id);
2727

2828
```
29+
30+
## Building
31+
This library uses CMake for building. Example:
32+
33+
### Basic build (includes tests)
34+
```bash
35+
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
36+
cmake --build build
37+
```
38+
39+
### Build without tests
40+
```bash
41+
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DMAU_UUID_BUILD_TESTS=ON
42+
cmake --build build
43+
cd build
44+
ctest --output-on-failure
45+
```
46+
Or set the option to OFF when adding the project in your cmake file to disable tests.

0 commit comments

Comments
 (0)