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/):
|
||||
|
||||
```bash
|
||||
$ mkdir -p out/cmake ; cd out/cmake ; cmake -DBUILD_TESTING=ON ../..
|
||||
$ make all test
|
||||
# Or manually:
|
||||
$ ./uv_run_tests # shared library build
|
||||
$ ./uv_run_tests_a # static library build
|
||||
$ mkdir -p out/cmake ; cd out/cmake # create build directory
|
||||
$ cmake ../.. -DBUILD_TESTING=ON # generate project with test
|
||||
$ cmake --build . # build
|
||||
$ ctest -C Debug --output-on-failure # run tests
|
||||
|
||||
# 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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user