Skip to content

Commit

Permalink
micropython.cmake aktualisieren
Browse files Browse the repository at this point in the history
  • Loading branch information
cnadler86 authored Sep 30, 2024
1 parent 52f9e26 commit 734ef5d
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions src/micropython.cmake
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
# 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
${CMAKE_CURRENT_LIST_DIR}/modcamera_api.c
)
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)

0 comments on commit 734ef5d

Please sign in to comment.