Skip to content

Add Arduino lib to arduino as IDF component #8115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed naming of the CMakeLists.txt file in the doc text
  • Loading branch information
PilnyTomas committed Apr 25, 2023
commit f0d0ccb706d1d47493478284ca60adcc751965f2
6 changes: 4 additions & 2 deletions docs/source/esp-idf_component.rst
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,17 @@ Download the library:

??? Modify your main\CMakeLists.txt by adding the library sources:

Create new CMakeists.txt in the library folder: ``components/new_library/CMakelists.txt``
Create new CMakeists.txt in the library folder: ``components/new_library/CMakeLists.txt``

.. code-block:: bash

idf_component_register(SRCS "new_library.cpp"
INCLUDE_DIRS "."
REQUIRES arduino-esp32
#PRIV_REQUIRES arduino-esp32, # ??
)

You can read more about CMakelists in the IDF documentation regarding the `Build System <https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/build-system.html>`_
You can read more about CMakeLists in the IDF documentation regarding the `Build System <https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/build-system.html>`_

Tip
---
Expand Down