Page 1 of 1

Can we code C++ using CMake

Posted: Mon May 20, 2019 1:38 am
by mikemoy
I was able to code in c++ using ESP-IDF, but having no luck with CMake.

Re: Can we code C++ using CMake

Posted: Mon May 20, 2019 2:34 am
by ESP_Sprite
What's the issue you're having? As bits of esp-idf are written in C++, I'd imagine you should also be able to compile C++-based application code with it.

Re: Can we code C++ using CMake

Posted: Mon May 20, 2019 4:29 am
by ESP_Angus
Hi Mike,

One big difference is that components in CMake have to name all their source files, the "all files in source directories" behaviour from Make is not repeated (this is a CMake philosophical difference that we've adopted). Is it possible your C++ files are not named in the component CMakeLists.txt file?

Angus

Re: Can we code C++ using CMake

Posted: Mon May 20, 2019 5:27 am
by Savnisharma
I have the same question....Thanks for this thread!