Erich Styger shared the steps how to use Eclipse with CMake:
The current Espressif documentation integrating with Eclipse are kind of broken and did not work for me (they are changing from make files to use CMake). The good news is that I have found a way to easily integrate the IDF with Eclipse which is documented below. Because I’m using the ESP32 in combination with the NXP Kinetis and SDK, it makes sense to have everything in the MCUXpresso IDE (I’m using the Version 11.0.0).
See the full post on MCU on Eclipse blog.