circuitpython/ports/espressif/CMakeLists.txt

22 lines
785 B
CMake
Raw Normal View History

# The following five lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
2020-06-27 13:27:42 -04:00
cmake_minimum_required(VERSION 3.13)
set(ENV{IDF_PATH} ${CMAKE_SOURCE_DIR}/esp-idf)
2020-08-12 19:57:39 -04:00
# The component list here determines what options we get in menuconfig and what the ninja file
# can build.
2022-10-19 11:05:48 -04:00
set(COMPONENTS esptool_py soc driver log main esp-tls mbedtls mdns esp_event esp_adc_cal esp_netif esp_wifi lwip ulp wpa_supplicant freertos bt usb)
2023-01-27 11:28:37 -05:00
if("${CIRCUITPY_ESPCAMERA}")
message("Including esp32-camera")
set(EXTRA_COMPONENT_DIRS "esp32-camera")
list(APPEND COMPONENTS "esp32-camera")
message("COMPONENTS = ${COMPONENTS}")
endif()
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(circuitpython)
idf_build_set_property(__OUTPUT_SDKCONFIG 0)