I plan to include it as a git submodule in the components folder of the client projects and have crafted the library's CMakeLists.txt to reflect that it is a component of another project. This works well when compiling the client projects.
Code: Select all
SET (COMPONENT_REQUIRES arduino-esp32 lwip ) SET (COMPONENT_ADD_INCLUDEDIRS includes) SET (COMPONENT_SRCS "src/foo.c" "src/bar.c" ) register_component()
If so how?
Do I have a second CMakeLists.txt for the library? If so, what does it look like (I can't get anything to compile)?
And how do I invoke a different CMakeLists.txt?
Or is there another way that I should be thinking about this?