update CMakeList for esp-idf component
This commit is contained in:
parent
8f71535dfd
commit
259ad0a6f1
@ -1,18 +1,10 @@
|
|||||||
|
|
||||||
# FIFO Buffer
|
idf_component_register(
|
||||||
add_library(FIFOBuffChar FIFOBuff/FIFOBuffChar.c)
|
COMPONENT_ALIAS "cli"
|
||||||
|
SRCS
|
||||||
# CMD List
|
CLI/CLI.c
|
||||||
add_library(CMDList CMDList/CMDList.c)
|
FIFOBuff/FIFOBuffChar.c
|
||||||
add_library(CMDListPrint CMDList/printList.c)
|
CMDList/CMDList.c
|
||||||
|
History/History.c
|
||||||
# History
|
INCLUDE_DIRS "./"
|
||||||
add_library(history History/History.c)
|
PRIV_INCLUDE_DIRS "../../src")
|
||||||
|
|
||||||
# CLI
|
|
||||||
add_library(CLI CLI/CLI.c)
|
|
||||||
target_link_libraries(CLI CMDList FIFOBuffChar history)
|
|
||||||
|
|
||||||
add_library(CLI_History CLI/CLI.c)
|
|
||||||
target_link_libraries(CLI_History CMDList FIFOBuffChar history)
|
|
||||||
target_compile_definitions(CLI_History PRIVATE HISTORY)
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user