Merge pull request #6839 from thymusvulgaris/examples-build-documentation

docs: Add instructions to build examples
This commit is contained in:
Edward Thomson
2024-07-10 08:32:08 +01:00
committed by GitHub

View File

@@ -224,6 +224,10 @@ On most systems you can build the library using the following commands
$ cmake ..
$ cmake --build .
To include the examples in the build, use `cmake -DBUILD_EXAMPLES=True ..` instead of `cmake ..`.
The built executable for the examples can then be found in `build/examples`, relative to the toplevel directory.
Alternatively you can point the CMake GUI tool to the CMakeLists.txt file and generate platform specific build project or IDE workspace.
If you're not familiar with CMake, [a more detailed explanation](https://preshing.com/20170511/how-to-build-a-cmake-based-project/) may be helpful.