Files
AutoFilm-ESP32/main/CMakeLists.txt
gronod a9298ae521 Add ESP-IDF skeleton for wroom and jc4827w543 boards
Dual-board IDF v5.4 layout with board components, motor EN safe
state on WROOM, TWDT left enabled. Local idf.py verify blocked:
no IDF_PATH or espressif/idf:v5.4 image in this environment.
2026-09-16 11:22:21 +00:00

12 lines
403 B
CMake

if(NOT DEFINED AUTOFILM_BOARD)
set(AUTOFILM_BOARD wroom CACHE STRING "wroom|jc4827w543")
endif()
if(AUTOFILM_BOARD STREQUAL "wroom")
set(BOARD_COMP board_wroom)
elseif(AUTOFILM_BOARD STREQUAL "jc4827w543")
set(BOARD_COMP board_jc4827w543)
else()
message(FATAL_ERROR "AUTOFILM_BOARD=${AUTOFILM_BOARD}")
endif()
idf_component_register(SRCS "main.c" INCLUDE_DIRS "." REQUIRES ${BOARD_COMP} driver)