style(CMake): reformat CMakeLists.txt for improved readability

This commit is contained in:
HendrikRauh 2026-03-16 21:59:55 +01:00
parent cebe56541a
commit bab5725e92
4 changed files with 30 additions and 20 deletions

View file

@ -1,10 +1,7 @@
# For more information about build system see
# https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html
# The following five lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.16)
# Clear any stale EXTRA_COMPONENT_DIRS entries (e.g. leftover from previous runs or PlatformIO)
# Clear any stale EXTRA_COMPONENT_DIRS entries (e.g. leftover from previous runs
# or PlatformIO)
set(EXTRA_COMPONENT_DIRS "")
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
@ -13,5 +10,6 @@ project(dmx-interface)
# Enable LittleFS filesystem image creation for web assets
if(COMMAND littlefs_create_partition_image)
littlefs_create_partition_image(storage ${CMAKE_SOURCE_DIR}/data FLASH_IN_PROJECT)
littlefs_create_partition_image(storage ${CMAKE_SOURCE_DIR}/data
FLASH_IN_PROJECT)
endif()