We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbae395 commit 085391eCopy full SHA for 085391e
src/CMakeLists.txt
@@ -68,6 +68,14 @@ else()
68
)
69
endif()
70
71
+if (${PLATFORM} MATCHES "Web")
72
+ target_link_options(raylib PUBLIC "-sUSE_GLFW=3" -sEXPORTED_RUNTIME_METHODS=ccall)
73
+ if(${GRAPHICS} MATCHES "GRAPHICS_API_OPENGL_ES3")
74
+ target_link_options(raylib PUBLIC "-sMIN_WEBGL_VERSION=2")
75
+ target_link_options(raylib PUBLIC "-sMAX_WEBGL_VERSION=2")
76
+ endif()
77
+endif()
78
+
79
set_target_properties(raylib PROPERTIES
80
PUBLIC_HEADER "${raylib_public_headers}"
81
VERSION ${PROJECT_VERSION}
0 commit comments