CMakeLists.txt files are the main configuration file of a CMake project. It contains information about the project and how to build it.
Documentation on writing CMakeList files can be found in the official documentation of CMake:
https://cmake.org/cmake/help/book/mastering-cmake/chapter/Writing%20CMakeLists%20Files.html