Skip to content

Commit

Permalink
Update README for cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-dejoue committed Oct 26, 2020
1 parent c4404a7 commit c480777
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,16 @@ python waf configure
python waf build
```

Alternatively, the testbed can be built using cmake. See below.

Running the Examples
--------------------

Load data points from a file:
```
p2t <filename> <center_x> <center_y> <zoom>
```
Random distribution of points inside a consrained box:
Random distribution of points inside a constrained box:
```
p2t random <num_points> <box_radius> <zoom>
```
Expand All @@ -71,3 +73,34 @@ Examples:
./build/p2t random 10 100 5.0
./build/p2t random 1000 20000 0.025
```

BUILD WITH CMAKE
================

Build the library
-----------------

```
mkdir build && cd build
cmake -GNinja
cmake --build .
```

Build and run the unit tests
----------------------------

```
mkdir build && cd build
cmake -GNinja -DP2T_BUILD_TESTS=ON
cmake --build .
ctest --output-on-failure
```

Build the testbed
-----------------

```
mkdir build && cd build
cmake -GNinja -DP2T_BUILD_TESTBED=ON
cmake --build .
```

0 comments on commit c480777

Please sign in to comment.