CMake is an important part of C++ ecosystem. However, it is official documentation is confusing for beginners. Here are few links from this reddit thread.
An introduction to Modern CMake.
Introduction to modern CMake for beginners.
I will update this post from time to time.
Happy coding.