Skip to content

Commit 64c0e43

Browse files
committed
Add esp-idf cmake build system component registration
1 parent 481f960 commit 64c0e43

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

CMakeLists.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# register esp-idf component
2+
if (ESP_PLATFORM)
3+
idf_component_register(
4+
SRCS
5+
"src/Dhcp.cpp"
6+
"src/Dns.cpp"
7+
"src/Ethernet.cpp"
8+
"src/EthernetClient.cpp"
9+
"src/EthernetServer.cpp"
10+
"src/EthernetUdp.cpp"
11+
"src/socket.cpp"
12+
"src/utility/w5100.cpp"
13+
INCLUDE_DIRS "src" "src/utility"
14+
REQUIRES arduino)
15+
endif ()

component.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)