update doc for cmake

update-fork
MITSUNARI Shigeo 4 years ago
parent c060dea39d
commit 1c402095e2
  1. 9
      readme.md
  2. 2
      test/CMakeLists.txt

@ -160,10 +160,17 @@ On Windows, `build.sh` expects [cybozulib_ext](https://github.com/herumi/cybozul
## options ## options
``` ```
cmake .. USE_GMP=OFF ; without GMP cmake .. MCL_USE_GMP=OFF ; without GMP
``` ```
see `cmake .. -LA`. see `cmake .. -LA`.
## tests
make test binaries in `./bin`.
```
cmake .. -DBUILD_TESTING=ON
make -j4
```
# How to build for wasm(WebAssembly) # How to build for wasm(WebAssembly)
mcl supports emcc (Emscripten) and `test/bn_test.cpp` runs on browers such as Firefox, Chrome and Edge. mcl supports emcc (Emscripten) and `test/bn_test.cpp` runs on browers such as Firefox, Chrome and Edge.

@ -1,5 +1,5 @@
# Tests # Tests
set(MCL_TEST_BASE fp_test ec_test fp_util_test window_method_test elgamal_test set(MCL_TEST_BASE fp_test ec_test fp_util_test window_method_test elgamal_test bls12_test
fp_tower_test gmp_test bn_test glv_test) fp_tower_test gmp_test bn_test glv_test)
foreach(base IN ITEMS ${MCL_TEST_BASE}) foreach(base IN ITEMS ${MCL_TEST_BASE})
add_executable(${base} ${base}.cpp) add_executable(${base} ${base}.cpp)

Loading…
Cancel
Save