File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,14 @@ cmake ..
2424make
2525```
2626
27+ ## Building With Emscripten
28+
29+ ``` shell
30+ mkdir cmake-build-emscripten && cd cmake-build-emscripten
31+ emcmake cmake ..
32+ emmake make
33+ ```
34+
2735## License
2836
2937This is released under the MIT license.
Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ target_link_libraries(cube PRIVATE BRender::Full)
77set_property (TARGET cube PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR} /../dat" )
88set_property (TARGET cube PROPERTY FOLDER "BRender/Examples" )
99
10+ if (EMSCRIPTEN)
11+ target_link_options (cube PRIVATE -sMAX_WEBGL_VERSION=2 )
12+ target_link_options (cube PRIVATE --preload-file ${CMAKE_SOURCE_DIR} /examples/dat@/ )
13+ endif ()
14+
1015set (CUBE_FILES cube.dat checkerboard.mat checkerboard.pix)
1116
1217foreach (file ${CUBE_FILES} )
You can’t perform that action at this time.
0 commit comments