angeluriot / Dimension3D

A simple graphics library (2D, 3D and windows).
MIT License
45 stars 10 forks source link

Conan Package #7

Closed TheFloatingBrain closed 1 year ago

TheFloatingBrain commented 2 years ago

I wrote a conan recipe for this library and have made a relevant issue for it on bincrafters community for its inclusion, just thought I would let the contributors know :smile:

One thing that I did have to do to make it work was edit the recipe for imgui-sfml 2.5 to use the imgui-docking source in order to make it work, could the dependency on this branch be removed (at least optionally)?

angeluriot commented 2 years ago

I don't understand what connan and bincrafters are.

TheFloatingBrain commented 2 years ago

I don't understand what connan and bincrafters are.

Conan is a package manager to make life easier, instead of installing and linking every library manually conan does it for you, you only need to provide a conanfile.txt file that provides some basic info like the library you would like and its version, its like npm for node/javascript or pip for python except for C++

You can have multiple profiles and versions of the library and it does not get so messy, in your CMakeLists.txt you can just specify ${CONAN_LIBS} to link the libraries, and include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) so you dont need to know the paths here is an example I made to test the dimension3d package

Bincrafters I guess package a bunch of libraries for conan and host them (or use too), dont know much about it either

angeluriot commented 2 years ago

Ok thanks, but I think you're wrong about this library, it's really something I did for me, it's very poorly done, just enough to make my projects work, it doesn't have at all the rigor needed to be part of a package manager.