I'm working on a multiplatform CMake project that depends on SDL2. I'm currently putting the SDL2 dlls in a directory in my project and committing them through git-lfs. A post-build CMake step is then able to copy the DLLs to the output folder without other developers needing to track them down and manually copy them over.
My question is: is this bad practice? Are there downsides that I'm not considering?
I can think of two alternatives:
- Use some method to find the DLLs in the syspath and copy them from there.
- Have a script or build step that checks for the files and downloads them if not present.