cmake_modules/FindGLEW.cmake
changeset 11657 ae6706411b24
parent 10015 4feced261c68
--- a/cmake_modules/FindGLEW.cmake	Thu Apr 21 00:09:07 2016 -0400
+++ b/cmake_modules/FindGLEW.cmake	Thu Apr 21 00:10:23 2016 -0400
@@ -34,6 +34,11 @@
             $ENV{PROGRAMFILES}/GLEW/lib
             DOC "The GLEW library")
 
+if(BUILD_ENGINE_JS)
+    set(GLEW_INCLUDE_DIR "${EMSCRIPTEN_ROOT_PATH}/system/include")
+    SET(GLEW_LIBRARY "glew_emscripten_internal")
+endif()
+
 find_package_handle_standard_args(GLEW DEFAULT_MSG GLEW_LIBRARY GLEW_INCLUDE_DIR)
 mark_as_advanced(GLEW_LIBRARY GLEW_INCLUDE_DIR)