Skip to content
This repository was archived by the owner on Apr 23, 2023. It is now read-only.

Commit b10c85a

Browse files
committed
Modernized component CMakeLists.txt
1 parent abc5cd8 commit b10c85a

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

cpp_utils/CMakeLists.txt

+4-19
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
1-
# Edit following two lines to set component requirements (see docs)
2-
set(COMPONENT_REQUIRES
3-
"console"
4-
"fatfs"
5-
"json"
6-
"mdns"
7-
"nvs_flash"
8-
"bt"
9-
)
10-
set(COMPONENT_PRIV_REQUIRES )
11-
121
file(GLOB COMPONENT_SRCS
13-
LIST_DIRECTORIES false
14-
"*.h"
15-
"*.cpp"
16-
"*.c"
17-
"*.S"
2+
"*.cpp"
183
)
19-
set(COMPONENT_ADD_INCLUDEDIRS ".")
20-
21-
register_component()
4+
idf_component_register(SRCS ${COMPONENT_SRCS}
5+
INCLUDE_DIRS ${CMAKE_CURRENT_LIST_DIR} $ENV{IDF_PATH}/components
6+
REQUIRES console fatfs json mdns nvs_flash bt)

0 commit comments

Comments
 (0)