Can we code C++ using CMake

mikemoy
Posts: 599
Joined: Fri Jan 12, 2018 9:10 pm

Can we code C++ using CMake

Postby mikemoy » Mon May 20, 2019 1:38 am

I was able to code in c++ using ESP-IDF, but having no luck with CMake.

ESP_Sprite
Posts: 8921
Joined: Thu Nov 26, 2015 4:08 am

Re: Can we code C++ using CMake

Postby ESP_Sprite » Mon May 20, 2019 2:34 am

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.

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Can we code C++ using CMake

Postby ESP_Angus » Mon May 20, 2019 4:29 am

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

Savnisharma
Posts: 1
Joined: Mon May 20, 2019 5:25 am

Re: Can we code C++ using CMake

Postby Savnisharma » Mon May 20, 2019 5:27 am

I have the same question....Thanks for this thread!

Who is online

Users browsing this forum: No registered users and 125 guests