CMake packages
projectsAt work, I’ve started transitioning the company’s build system to CMake. Makefiles are a huge pain in the ass, though not as big as some other tools (but I digress).
The biggest problem with CMake so far is that you have to write “FindXXX.cmake” packages for any external dependencies so CMake knows how to find their headers and link against its libraries.
Here are the package files for LibEvent, MySQL client, Net-SNMP, Libnet, PCRE and GLIB2. Some of these I found on the Internet and others I wrote myself. You can find the files on GitHub at: