|
@@ -30,8 +30,8 @@ target_link_libraries(${PROJECT_NAME} raylib)
|
|
|
|
|
|
# Web Configurations
|
|
# Web Configurations
|
|
if (${PLATFORM} STREQUAL "Web")
|
|
if (${PLATFORM} STREQUAL "Web")
|
|
- # Tell Emscripten to build an example.html file.
|
|
|
|
- set_target_properties(${PROJECT_NAME} PROPERTIES SUFFIX ".html")
|
|
|
|
|
|
+ set_target_properties(${PROJECT_NAME} PROPERTIES SUFFIX ".html") # Tell Emscripten to build an example.html file.
|
|
|
|
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s USE_GLFW=3 -s ASSERTIONS=1 -s WASM=1 -s ASYNCIFY -s GL_ENABLE_GET_PROC_ADDRESS=1")
|
|
endif()
|
|
endif()
|
|
|
|
|
|
# Checks if OSX and links appropriate frameworks (Only required on MacOS)
|
|
# Checks if OSX and links appropriate frameworks (Only required on MacOS)
|