This repo has the CMakeLists.txt for cgltf single header library which I generally use for my personal projects to avoid the same boiler plate and so that I can directly vendor it as a git submodule.
Here is the original repo: Link The license of the original work is here
As for the custom CMakeLists.txt:
- The library is a static library
- It can be used for either C or C++ projects
- Only these set of single headers are included:
- cgltf.h
- cgltf_write.h
- In CMake, the name of the project is simply
cgltf