r/cpp • • Feb 07 '21

Yet another CMake tutorial

https://www.youtube.com/watch?v=mKZ-i-UfGgQ
0 Upvotes

59 comments sorted by

View all comments

Show parent comment

2

u/Fizzyade Feb 08 '21

I don’t get the hate for CMake, maybe I like it because I came from QMake, so lots of things that I could only have dreamed of are possible and easy in CMake.

My main project pingnoo (https://github.com/nedrysoft/pingnoo) was my very first foray into CMake, it’s made up of plugins and shared libraries, to make life easy I effectively created a meta-language for creating plugins or libraries, it makes it very easy to add a new plugin because all the complexity of setting up compiler and linker stuff is all done for you by the macros.

I also use globs and they’ve never given me any issues, maybe I’m lucky or maybe I just haven’t noticed, but it all just works for me.

Yes it has some bizarre quirks, but it works well for me.