Page 1 of 1

Setting up Googletest with ESP-IDF

Posted: Mon Nov 14, 2022 6:42 pm
by StridingDragon
I've been trying for the past days to set up a very basic example project to use Googletest but I have not had much luck. CMake and its clutter is just constantly getting in my way. I can't get it set up as a component and I can't get it set up as a lib either. Something's always going wrong.

Has anyone been able to get Gtest to work in an IDF project, and would you be willing to share how you set it up?
Thank you!

Re: Setting up Googletest with ESP-IDF

Posted: Fri Nov 18, 2022 2:57 am
by StridingDragon
After days and days of trying, I gave up. I guess, Googletest is just not made for the ESP32, even though they have ESP32 and ESP8266 build paths in their code. Or perhaps, I'm just not cut out for this kind of CMake magic.