How to generate CMakeLists.txt in Clion when I create project from existing sources?

  c++, clion, cmake

Idk how to make it automaticly – the only option is to specify where the file is – not to generate it, but I don’t wan’t to write it by my own, because there are too many source files to include.

Source: Windows Questions C++