D
D
Dolarun2022-02-09 00:01:58
C++ / C#
Dolarun, 2022-02-09 00:01:58

What external dependencies and how to arrange in the project?

I'm writing a library (for study purposes) which in turn uses the standard library as well as GLFW. Will I do the right thing if I create an external folder and push the GLFW folder with the appropriate libraries there. I will not put the standard library in the project, since it is assumed that all C ++ programmers have it.
Am I doing the right thing if I do this, or is there another way? PS I do compile Lib.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2022-02-09
@Dolarun

If the project is for Linux (or another nix), then it is better to install dependencies from standard repositories, and not include them in the project. If there are no libraries in the standard repositories, then options are already possible.
Creating a separate folder for dependencies in the project and putting them there is a normal practice if the previous option is not suitable for some reason. In this case, if you use a version control system (git), then add the dependency as a submodule, with a link to the native repository.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question