Tactiliest/tactility-esp/CMakeLists.txt
Ken Van Hoeylandt d171b9a231
Display brightness support (#26)
* cleanup

* brightness control and app

* cleanup

* persistant storage of display settings

* fix for missing include

* header cleanup

* fix pc build

* add docs

* move display app to tactility project
2024-01-31 20:39:12 +01:00

22 lines
632 B
CMake

cmake_minimum_required(VERSION 3.16)
set(BOARD_COMPONENTS esp_wifi)
file(GLOB_RECURSE SOURCE_FILES src/*.c)
idf_component_register(
SRCS ${SOURCE_FILES}
INCLUDE_DIRS "src/"
REQUIRES esp_wifi nvs_flash spiffs
)
set(ASSETS_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/assets")
spiffs_create_partition_image(assets ${ASSETS_SRC_DIR} FLASH_IN_PROJECT)
set(CONFIG_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/config")
spiffs_create_partition_image(config ${CONFIG_SRC_DIR} FLASH_IN_PROJECT)
target_link_libraries(${COMPONENT_LIB} ${IDF_TARGET_NAME} tactility)
target_link_libraries(${COMPONENT_LIB} ${IDF_TARGET_NAME} tactility-core)