#Question about libraries in makefiles for sharing on github

15 messages · Page 1 of 1 (latest)

hearty spindle
#

Hi everyone, im a bit new to C and C++ ecosystem and theres so many ways to manage libraries. I decided to use CMake for my most recent one but im not sure how to make it work on other machines.

I have done the following so far for different projects

A) Download the DLL and put it in a /lib folder, so like libgcc_s_dw2-1.dll

B) Clone the repo so like /imgui and that has all the source files

C) Use a homebrew so i point a path at my binary, but this depends e.g. if the user has homebrew or where they installed the lib

Im just wondering im sure theres a better way to do this right? Like can i point it to some online distirbution like you put the github url?

hardy swiftBOT
#

-# C++ @heavy sedge @jovial magnet @copper stream
-# C @jovial magnet @copper stream

copper stream
#

Nope, welcome to C++ land

hearty spindle
#

oh man

hearty spindle
#

Im assuming the compiled binaries or?

#

so i compile imgui and then put it in? Not sure

copper stream
#

i mean you can use fetchcontent in cmake

#

vcpkg and conan exist

#

find_package exist as well

#

it all sucks tho

hearty spindle
#

yeah i see fetchcontent you gotta declare it and stuff

#

oh well

#

Will do so though 🫡

hearty spindle