doc: clarify that ninja is optional and add other potential useful flags for CMake build (#1768)

---------

Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
This commit is contained in:
Konstantin 2024-09-11 20:03:53 -04:00 committed by GitHub
parent ac03f31384
commit c51c0fd714
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,10 +41,15 @@ Basically, you need those commands:
```shell
cd goldendict-ng && mkdir build_dir
# config step
cmake -S . -B build_dir -G Ninja
cmake -S . -B build_dir
-G "Ninja"/"Unix Makefiles"/"Xcode"... (Optional)
-install-prefix=/usr/local/ (Optional)
-DCMAKE_BUILD_TYPE=Release (Optional)
# actual build
cmake --build build_dir
--parallel 7 (Optional if Ninja was chosen)
cmake --install ./build_dir/
```