Skip to content

Depending on single header libraries #11817

Answered by eli-schwartz
LDAP asked this question in Q&A
Discussion options

You must be logged in to vote

For tinyobjloader it provides a pkg-config and a cmake config file, so:

dependency('tinyobjloader')

For stb this is complicated because upstream doesn't really support anything other than copying the header into your own project sources. No installation routines are provided, and there are multiple separate projects in one git repo that each have separate versioning policies -- which per the upstream developer you may want to have different versions of, so even adding it as a git submodule doesn't work, because you can't have multiple versions of the git repo at the same time.

See e.g. nothings/stb#359

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LDAP
Comment options

Answer selected by LDAP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants