From 5b5fd11b25b0c91fc918ba337dde400e1efcba28 Mon Sep 17 00:00:00 2001 From: Christopher Nadler <147471517+cnadler86@users.noreply.github.com> Date: Mon, 30 Sep 2024 06:26:21 +0200 Subject: [PATCH] micropython.cmake aktualisieren --- src/micropython.cmake | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/micropython.cmake b/src/micropython.cmake index 14316d6..592ddf1 100644 --- a/src/micropython.cmake +++ b/src/micropython.cmake @@ -1,3 +1,18 @@ +list(APPEND SRC_CAMERA + modcamera.c + modcamera_api.c +) + +idf_component_register( + SRCS ${SRC_CAMERA} + INCLUDE_DIRS "." +) + +if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/sdkconfig") + message(STATUS "Using custom sdkconfig") + set(SDKCONFIG_DEFAULTS "${CMAKE_CURRENT_SOURCE_DIR}/sdkconfig") +endif() + add_library(usermod_mp_camera INTERFACE) target_sources(usermod_mp_camera INTERFACE ${CMAKE_CURRENT_LIST_DIR}/modcamera.c