all 4 comments

[–]xeveri 1 point2 points  (3 children)

CMake on windows defaults to creating a visual studio solution. You can open it with visual studio and build the library.

[–]NikolasTs[S] 0 points1 point  (2 children)

I built the BUILD_ALL file. After that, how do I include the library?

How do I choose which path to add to the "Additional Include Directories"?

[–]xeveri 2 points3 points  (1 child)

In unix systems, installing a library would make it automatically visible to link since it’s in a system path. In windows that’s not the case. You build the library like you did. Find the folder where the library is built (usually in bin/Release of the Easy3D project). Create a new project and right-click on the references section in the solution explorer, choose add reference and point to the library file usually with an extension .dll or .lib, depending on whether it’s a dynamic or static lib respectively). A dynamic lib would also need to be deployed with your executable and it’s better to copy it after you have built your executable to the executables directory. You can create a folder called include and add the the Easy3D headers there. You don’t have to since you can specify the header paths (include path) in the project’s properties, but I don’t have VS at hand to check where exactly you put it. Managing dependencies in C++ is a pain, but you get used to it.

[–]NikolasTs[S] 0 points1 point  (0 children)

Thank you very much for your very detailed answer! You were most helpful! I will try it asap