3 ms·
I found CMake scripts really hard to grok but I think that was because I was trying to learn by reading ones other people had made. I found it helpful to build
by callumprentice 8y ago
I found CMake scripts really hard to grok but I think that was because I was trying to learn by reading ones other people had made.
I found it helpful to build a simple app composed of a few C++ files, headers and library dependencies and then write the bare minimum CMake script to build it. After that, I just keep iterating, adding CMake features, turning on or off C++ features, making it work on other platforms, compilers, bit-widths etc.
Now, I can't imagine starting a C++ project without using it.