From 259ad0a6f1777c4371c4a8b0837e82ee16aae3ab Mon Sep 17 00:00:00 2001 From: FReenen Date: Fri, 19 Jul 2024 22:34:22 +0200 Subject: [PATCH] update CMakeList for esp-idf component --- CMakeLists.txt | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0905f99..33ef350 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,18 +1,10 @@ -# FIFO Buffer -add_library(FIFOBuffChar FIFOBuff/FIFOBuffChar.c) - -# CMD List -add_library(CMDList CMDList/CMDList.c) -add_library(CMDListPrint CMDList/printList.c) - -# History -add_library(history History/History.c) - -# 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) +idf_component_register( + COMPONENT_ALIAS "cli" + SRCS + CLI/CLI.c + FIFOBuff/FIFOBuffChar.c + CMDList/CMDList.c + History/History.c + INCLUDE_DIRS "./" + PRIV_INCLUDE_DIRS "../../src")