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?
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?