Skip to content

Commit

Permalink
Update ESP32 examples to build with idf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
maximkulkin committed Mar 15, 2020
1 parent c381c12 commit d1b7401
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/common/homekit
11 changes: 11 additions & 0 deletions examples/esp32/dynamic_services/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
cmake_minimum_required(VERSION 3.5)

set(EXTRA_COMPONENT_DIRS
../../../components/common
../../../components/esp-idf
)

include_directories(../../../)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(dynamic_services)
1 change: 1 addition & 0 deletions examples/esp32/dynamic_services/main/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
idf_component_register(SRCS "main.c")
7 changes: 4 additions & 3 deletions examples/esp32/led/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
cmake_minimum_required(VERSION 3.5)

set(
EXTRA_COMPONENT_DIRS
set(EXTRA_COMPONENT_DIRS
../../../components/common
../../../components/esp32-idf
../../../components/esp-idf
)

include_directories(../../../)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(led)

0 comments on commit d1b7401

Please sign in to comment.