Resources and books
There are many free resources online regarding CMake:
The CMake tutorial.
The HEP Software Foundation training course.
You can also consult the following books:
Professional CMake: A Practical Guide by Craig Scott.
CMake Cookbook by Radovan Bast and Roberto Di Remigio. The accompanying repository is on GitHub