Skip to content

Commit 3600ab5

Browse files
committed
Add component CMakeLists.txt file for use with CMake-based build system
1 parent 89859f7 commit 3600ab5

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Diff for: CMakeLists.txt

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
file(GLOB core_srcs
2+
libraries/*/src/*.c
3+
libraries/*/src/*.cpp
4+
cores/esp32/*.c
5+
cores/esp32/*.cpp
6+
cores/esp32/libb64/*.c
7+
)
8+
9+
# Note: we set COMPONENT_SRCS not COMPONENT_SRCDIRS here because
10+
# not all of libraries/*/src contain source files, some are
11+
# header-only...
12+
set(COMPONENT_SRCS cores/esp32/ cores/esp32/libb64 ${core_srcs})
13+
14+
file(GLOB core_lib_dirs LIST_DIRECTORIES true
15+
libraries/*/src/)
16+
17+
set(COMPONENT_ADD_INCLUDEDIRS cores/esp32 variants/esp32 ${core_lib_dirs})
18+
set(COMPONENT_PRIV_INCLUDEDIRS cores/esp32/libb64)
19+
20+
set(COMPONENT_REQUIRES spi_flash mbedtls mdns ethernet)
21+
set(COMPONENT_PRIV_REQUIRES fatfs nvs_flash app_update spiffs bootloader_support)
22+
23+
register_component()
24+

0 commit comments

Comments
 (0)