What is Nostr?
Dan Piponi /
npub1xs3…grae
2024-11-14 15:59:12

Dan Piponi on Nostr: I rarely interact with cmake but I thought I'd try again to learn it even though I'm ...

I rarely interact with cmake but I thought I'd try again to learn it even though I'm not entirely sure what purpose it serves. So cmake 101 here...

So I have my fresh new raspberry-pi with everything installed in its default place. I have a small ncurses app. I follow the instructions on how to add curses to a project. It can't find the libraries. I look for help online. I'm told to look for the libraries myself and add the locations to the CMakeLists.txt file. I find the libraries in a raspberry-pi specific location. Now it works. So what did cmake buy me here if I still need to write O($NUM_PLATFORMS*$NUM_LIBRARIES) lines of code?
Author Public Key
npub1xs30e0pj7velktf5sxewnqf93tu2pdt3s6wtl6fug2tzgy8zxthsgfgrae