Using with CLion
Note
This information is no longer current.
However, if you are able to set up an external make
project with CLion that should work.
To get intelliense (or whatever the equivalent for CLion is) will require setting up a list of the correct #include paths. For vscode we have a tool to handle that:
run
make ide-vscode
from a sample project directoryexamine generated path list in
.vscode/c_cpp_properties.json
Something similar could be done for CLion perhaps?
Developing with the Sming framework can also be done in CLion.
Copy and paste Makefiles into the project
Create
app
folder and addapplication.cpp
thereEdit
CMakeLists.txt
## Edit CMakeLists.txt
include_directories("/opt/Sming/Sming")
include_directories("/opt/Sming/Sming/Libraries")
include_directories("/opt/Sming/Sming/system/include")
include_directories("/opt/esp-open-sdk/sdk/include")
set(SOURCE_FILES app/application.cpp)
add_executable(Pathfinder ${SOURCE_FILES})
Build the project using terminal
make && make flash