Skip to content

Commit 9fd5876

Browse files
DhruvaG2000szczys
andcommitted
Update documentation/arduino_libs.md
Be explicit on how to add the source file to the build Co-authored-by: Mike Szczys <[email protected]>
1 parent 092f315 commit 9fd5876

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/arduino_libs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Paste your library's source files like ``ADXL345.h`` and ``ADXL345.cpp`` in your
1919

2020
## Update CMakeLists
2121
As we can see, there is a Top-level CMakelists which needs to be updated with your external library's source files.
22-
For example refer to the ADXL345 demo has ``ADXL345.cpp`` in it's CMakeLists.
22+
For example, we add `target_sources(app PRIVATE src/ADXL345.cpp)` to CMakeLists.txt.
2323

2424
## Update main.cpp
2525
Finally, paste your required code using the library in ``main.c`` and include that library's header using

0 commit comments

Comments
 (0)