@@ -54,40 +54,20 @@ cmake . -B build -DCMAKE_BUILD_TYPE="Release"
5454cmake --build build
5555```
5656
57- However, some of the examples (and headers) require additional dependencies.
58- To make use of all features and to enable/build all examples, the use of [ vcpkg] ( https://vcpkg.io/en/index.html ) is encouraged.
59-
60- #### Using vcpkg for getting optional dependecies (using manifest mode)
61-
62- Call CMake with ` -DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]/scripts/buildsystems/vcpkg.cmake `
63-
64- Add optional features by listing them with ` -DVCPKG_MANIFEST_FEATURES=feature1;feature2 `
65-
66- See [ vcpkg.json] ( vcpkg.json ) for available features.
67-
68- Note, however, that under MinGW you'll need to specify the vcpkg triplet:
69- ``` shell
70- -DVCPKG_TARGET_TRIPLET=x64-mingw-[static| dynamic] # choose either `static` or `dynamic`.
71- -DVCPKG_HOST_TRIPLET=x64-mingw-[static| dynamic] # <-- needed only if MSVC cannot be found.
72- ```
73-
7457##### Building examples with Emscripten
7558
7659Pass to CMake:
7760``` shell
7861-DCMAKE_TOOLCHAIN_FILE=" [path to emscripten]\emsdk\upstream\emscripten\cmake\Modules\Platform\Emscripten.cmake"
7962```
80- When using vcpkg, however, do:
81- ``` shell
82- -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=" [path to emscripten]\emsdk\upstream\emscripten\cmake\Modules\Platform\Emscripten.cmake"
83- ```
63+
8464This will generate .html versions of a subset of the examples to be loaded in a browser.
8565
8666
8767##### Optional downstream dependencies
8868
8969When consuming ` threepp ` in your own application,
90- some headers will require additional dependencies in order to compile.
70+ some headers will require additional dependencies to compile.
9171
9272| ** Header** | ** Dependency** | ** Description** |
9373| --------------| ----------------| -----------------------------------------------|
0 commit comments