doc: update the cmake testing instruction
PR-URL: https://github.com/libuv/libuv/pull/2253 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
parent
16fe9a8602
commit
87a116c4d0
13
README.md
13
README.md
@ -172,11 +172,14 @@ $ make install
|
|||||||
To build with [CMake](https://cmake.org/):
|
To build with [CMake](https://cmake.org/):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ mkdir -p out/cmake ; cd out/cmake ; cmake -DBUILD_TESTING=ON ../..
|
$ mkdir -p out/cmake ; cd out/cmake # create build directory
|
||||||
$ make all test
|
$ cmake ../.. -DBUILD_TESTING=ON # generate project with test
|
||||||
# Or manually:
|
$ cmake --build . # build
|
||||||
$ ./uv_run_tests # shared library build
|
$ ctest -C Debug --output-on-failure # run tests
|
||||||
$ ./uv_run_tests_a # static library build
|
|
||||||
|
# Or manually run tests:
|
||||||
|
$ ./out/cmake/uv_run_tests # shared library build
|
||||||
|
$ ./out/cmake/uv_run_tests_a # static library build
|
||||||
```
|
```
|
||||||
|
|
||||||
To build with GYP, first run:
|
To build with GYP, first run:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user