I started my project with a simple "blink" example and used it as a template to write my code.
This example used only one source file blink.c
.
Eventually, I want to a use multi source files project and can't figure out how to configure CMakeLists.txt
in order to compile the project.
My CMakeLists.txt
is:
cmake_minimum_required(VERSION 3.5)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(blink)
I want to add for example init.c
.
I tried different ways, but with no success.
None of idf_component_register() / register_component() worked for me.
Any idea how to correctly configure the project?