diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..7371114 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "vendor/glm"] + path = vendor/glm + url = https://github.com/g-truc/glm.git diff --git a/configure b/configure index 0893cfa..f6cc1c1 100755 --- a/configure +++ b/configure @@ -1,3 +1,9 @@ #!/bin/sh -cmake -DCMAKE_TOOLCHAIN_FILE="$EMSCRIPTEN/cmake/Modules/Platform/Emscripten.cmake" +VENDOR="vendor" + +GLM="$VENDOR/glm" + +cmake \ +-DCMAKE_TOOLCHAIN_FILE="$EMSCRIPTEN/cmake/Modules/Platform/Emscripten.cmake" \ +-DGLM_INCLUDE_DIR="$GLM" diff --git a/vendor/glm b/vendor/glm new file mode 160000 index 0000000..0af2e05 --- /dev/null +++ b/vendor/glm @@ -0,0 +1 @@ +Subproject commit 0af2e05b1b456ef92c8424d5f85b36b973adf610