Intro
CMake is one of those things I never cared so much about because whenever I had to use CMake someone else already did the work for me of writting the necessary CMake scripts. It changed when I started developing small personal projects where I also had to write the CMake scripts. Writing my own CMake scripts soon led me to the conclusion that CMake is not so easy to get right, at least for more complex projects. Luckily (Hurrah for the Internet), there are quiet a few resources on the internet on how to write CMake scripts and more importantly how to write modern CMake scripts. The main resources I tried to follow along are the blog post It's Time To Do CMake Right by Pablo Arias and the talk Effective Cmake by Daniel Pfeiffer.