test, examples: use new component registration function

This commit is contained in:
Renz Bagaporo
2020-03-22 17:34:18 +08:00
parent bd827a4d2f
commit 4d9c573fb6
33 changed files with 124 additions and 197 deletions
@@ -1,7 +1,2 @@
set(COMPONENT_SRCS "button.c"
"button_obj.cpp")
set(COMPONENT_ADD_INCLUDEDIRS ". include")
register_component()
idf_component_register(SRCS "button.c" "button_obj.cpp"
INCLUDE_DIRS "." "include")
@@ -1,7 +1,6 @@
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
"ble_mesh_demo_init.c"
"board.c")
set(srcs "ble_mesh_demo_main.c"
"ble_mesh_demo_init.c"
"board.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS ".")
@@ -1,7 +1,6 @@
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
"ble_mesh_demo_init.c"
"board.c")
set(srcs "ble_mesh_demo_main.c"
"ble_mesh_demo_init.c"
"board.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS ".")