5 ms·
Link to a free and open modern cmake tutorial?
by sebastos 6y ago
Link to a free and open modern cmake tutorial?
- rumanator 6y agoYou can pretty much google for "modern cmake tutorial" to get a long list of tutorials on how to write target-based cmake projects.
- moonbug 6y agospoiler: they're all crap.
- nickez 6y agoAnd worse, they all achieve the same goal in different ways...
- mlvljr 6y agoNot to mention, target outdated ways of doing things with CMake (there is always 3-4 at least).
- MaxBarraclough 6y agoA great point. There should a single standard and well-documented way to do things. The documentation should be official, the user should not be expected to trawl the blogosphere and piece together the knowledge they need. There should be plenty of complete examples. Ideally the official Find... packages should not make use of deprecated CMake functionality, they should be actively maintained to follow the current best-practices, so that they can serve as examples of the right way to do it. As I rambled about in my longer comment yesterday, this kind of work shouldn't require you to think, it should just be an exercise in applying boring, samey, dependable boilerplate.
- sebastos 6y agohttps://cliutils.gitlab.io/modern-cmake/chapters/basics.html https://cliutils.gitlab.io/modern-cmake/chapters/basics.html ^ Is that a good one?