lock_lfvx/bk_idk/components/app/CMakeLists.txt

31 lines
481 B
CMake
Raw Normal View History

2025-10-10 16:07:00 +08:00
#TODO should move all public include dir to modules
set(incs .)
set(srcs )
if (CONFIG_LITTLEFS)
list(APPEND srcs
littlefs_demo/lfs_example_onchip_flash.c
)
endif()
if (CONFIG_HOST_NONE)
list(APPEND incs)
endif()
if (CONFIG_NTP_SYNC_RTC)
list(APPEND srcs
time/time.c
time/ntp.c
time/app_time_intf.c
)
endif()
#TODO fix main
armino_component_register(SRCS "${srcs}"
INCLUDE_DIRS "${incs}"
REQUIRES bk_wifi bk_cli
PRIV_REQUIRES bk_common littlefs lwip_intf_v2_1
)