In Silk.NET we're packaging Assimp as a native dependency. We'd like to enable Draco in our Assimp build but would also like to avoid having to ship the extra shared library. This patch adds an option ASSIMP_BUILD_DRACO_STATIC which allows building and linking Draco statically into Assimp.
This only works when using the bundled Draco since there doesn't seem to be an obvious way to make it work with find_package().
I'm only able to test this on Linux. Hopefully it just works on Windows and macOS in CI...
In Silk.NET we're packaging Assimp as a native dependency. We'd like to enable Draco in our Assimp build but would also like to avoid having to ship the extra shared library. This patch adds an option
ASSIMP_BUILD_DRACO_STATIC
which allows building and linking Draco statically into Assimp.This only works when using the bundled Draco since there doesn't seem to be an obvious way to make it work with
find_package()
.I'm only able to test this on Linux. Hopefully it just works on Windows and macOS in CI...