Add web support
This commit is contained in:
@@ -30,3 +30,8 @@ add_executable(PixelDefense
|
||||
|
||||
|
||||
target_link_libraries(PixelDefense LINK_PRIVATE Breeze)
|
||||
if (EMSCRIPTEN)
|
||||
set_target_properties(PixelDefense
|
||||
PROPERTIES SUFFIX ".html"
|
||||
LINK_FLAGS " --bind -s WASM=1 -s STACK_SIZE=512kb -s ASSERTIONS=2 -s MIN_WEBGL_VERSION=1 --preload-file ../assets -g2 -gseparate-dwarf -gsource-map -s USE_GLFW=3")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user