Page 1 of 1

How to concatenate cmake targets?

Posted: Sat Dec 18, 2021 9:07 pm
by ramier
Hey,

I am using clion during development. Everything works fine so far, I used the tutorial provided by clion for the esp-idf setup https://www.jetbrains.com/help/clion/esp-idf.html.
When building and monitoring the log I have two options, first running build with cmake and then running monitor with cmake or simply running `idf.py flash monitor`.

Is there a way to reproduce `idf.py flash monitor` with cmake? I am able to run each of these command separately, but how can I combine them in cmake?
And where can I find the flash and monitor targets in cmake?

Thank you