This folder was created as follows:
cd third_party
curl -L -O https://github.com/zeux/meshoptimizer/archive/0a816f5.zip
unzip 0a816f5.zip
mv meshoptimizer-* meshoptimizer
cd meshoptimizer
rm -rf demo tools
mv LICENSE.md LICENSE
Also added this to the CMakeLists.txt:
if(CLANG_CL)
# Clang for Windows needs an additional flag for SSSE3 instructions.
target_compile_options(meshoptimizer PRIVATE -mssse3)
endif()
To update the library, you can do this:
curl -L -O https://github.com/zeux/meshoptimizer/archive/master.zip
unzip master.zip
cp -r meshoptimizer-master/src/ meshoptimizer/src/