From 734ef5d8c91d36981e39feb4cf4aa4c3560f496a Mon Sep 17 00:00:00 2001 From: Christopher Nadler <147471517+cnadler86@users.noreply.github.com> Date: Mon, 30 Sep 2024 07:41:36 +0200 Subject: [PATCH] micropython.cmake aktualisieren --- src/micropython.cmake | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/micropython.cmake b/src/micropython.cmake index 5ef4a44..9527545 100644 --- a/src/micropython.cmake +++ b/src/micropython.cmake @@ -1,14 +1,3 @@ -# ESP-IDF-Komponentenregistrierung -idf_component_register( - INCLUDE_DIRS "." -) - -# Überprüfe, ob sdkconfig vorhanden ist, um benutzerdefinierte Konfiguration zu verwenden -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 @@ -16,6 +5,11 @@ target_sources(usermod_mp_camera INTERFACE ) target_include_directories(usermod_mp_camera INTERFACE ${CMAKE_CURRENT_LIST_DIR} + ${IDF_PATH}/components/esp32-camera/driver/include + ${IDF_PATH}/components/esp32-camera/driver/private_include + ${IDF_PATH}/components/esp32-camera/conversions/include + ${IDF_PATH}/components/esp32-camera/conversions/private_include + ${IDF_PATH}/components/esp32-camera/sensors/private_include ) target_compile_definitions(usermod_mp_camera INTERFACE) target_link_libraries(usermod INTERFACE usermod_mp_camera) \ No newline at end of file