Simplified CMake Tutorial
Video Statistics and Information
Channel: codevion
Views: 19,441
Rating: 4.8434443 out of 5
Keywords: cmake, cpp, build
Id: mKZ-i-UfGgQ
Channel Id: undefined
Length: 27min 46sec (1666 seconds)
Published: Sun Feb 07 2021
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
Yet another CMake tutorial written by someone who has no idea how to use CMake.
They glob for sources which is bad enough, but then they glob recursively and without setting CONFIGURE_DEPENDS, which is outright incorrect and won't notice additions or removals of files without rerunning CMake (not just the build tool) manually.
The minimum version is 3.10, which is FAR from modern, while 3.16 is available everywhere and 3.20 is around the corner.
Skipped ahead to the "how to use libraries" section. The code doesn't use imported targets. So, again, not modern. Also, findlibrary doesn't have a REQUIRED argument until 3.18, so that code will just outright not work on the advertised version. Edit: worse, the video uses SFML in an unsupported way; the variables they expand were removed in 2018 in favor of imported targets. The example code doesn't even _work on Ubuntu 20.04 LTS.
Skip this.