I am developing a code generator which outputs a CMake project from abstract description.
I was wondering if I could somehow integrate this generation step inside Cmake, so that if the description is changed, cmake will regenerate the CMakeLists.txt.
So, can I have CMakeLists.txt integrate rules to generate itself?