Initial commit
This commit is contained in:
8
CMakeLists.txt
Normal file
8
CMakeLists.txt
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
idf_build_get_property(target IDF_TARGET)
|
||||||
|
|
||||||
|
set(srcs "src/component.c")
|
||||||
|
set(public_include "include")
|
||||||
|
|
||||||
|
idf_component_register(SRCS ${srcs}
|
||||||
|
INCLUDE_DIRS ${public_include}
|
||||||
|
)
|
||||||
0
include/component.h
Normal file
0
include/component.h
Normal file
0
src/component.c
Normal file
0
src/component.c
Normal file
8
test_apps/component/CMakeLists.txt
Normal file
8
test_apps/component/CMakeLists.txt
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# This is the project CMakeLists.txt file for the test subproject
|
||||||
|
cmake_minimum_required(VERSION 3.16)
|
||||||
|
|
||||||
|
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
|
||||||
|
set(COMPONENTS main)
|
||||||
|
|
||||||
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||||
|
project(component_test)
|
||||||
0
test_apps/component/README.md
Normal file
0
test_apps/component/README.md
Normal file
8
test_apps/component/main/CMakeLists.txt
Normal file
8
test_apps/component/main/CMakeLists.txt
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
set(srcs "test_app_main.c"
|
||||||
|
"test_component.c")
|
||||||
|
|
||||||
|
# In order for the cases defined by `TEST_CASE` to be linked into the final elf,
|
||||||
|
# the component can be registered as WHOLE_ARCHIVE
|
||||||
|
idf_component_register(SRCS ${srcs}
|
||||||
|
PRIV_REQUIRES unity esp_driver_gpio spi_flash esp_psram
|
||||||
|
WHOLE_ARCHIVE)
|
||||||
0
test_apps/component/main/test_app_main.c
Normal file
0
test_apps/component/main/test_app_main.c
Normal file
0
test_apps/component/main/test_component.c
Normal file
0
test_apps/component/main/test_component.c
Normal file
0
test_apps/component/sdkconfig.ci.xxx
Normal file
0
test_apps/component/sdkconfig.ci.xxx
Normal file
0
test_apps/component/sdkconfig.defaults
Normal file
0
test_apps/component/sdkconfig.defaults
Normal file
Reference in New Issue
Block a user