mirror of
https://github.com/usatiuk/cardboy.git
synced 2025-10-28 15:17:48 +01:00
37 lines
902 B
CMake
37 lines
902 B
CMake
idf_component_register(
|
|
SRCS
|
|
"src/bat_mon.cpp"
|
|
"src/buttons.cpp"
|
|
"src/buzzer.cpp"
|
|
"src/esp_backend.cpp"
|
|
"src/event_bus.cpp"
|
|
"src/display.cpp"
|
|
"src/fs_helper.cpp"
|
|
"src/i2c_global.cpp"
|
|
"src/shutdowner.cpp"
|
|
"src/spi_global.cpp"
|
|
INCLUDE_DIRS
|
|
"include"
|
|
PRIV_REQUIRES
|
|
driver
|
|
esp_timer
|
|
esp_driver_i2c
|
|
esp_driver_spi
|
|
littlefs
|
|
nvs_flash
|
|
)
|
|
|
|
add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/../../sdk/utils" cardboy_utils_esp)
|
|
add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/../../sdk/backend_interface" backend_interface_from_backend_esp)
|
|
|
|
add_library(cardboy_backend_esp INTERFACE)
|
|
target_link_libraries(cardboy_backend_esp
|
|
INTERFACE
|
|
${COMPONENT_LIB}
|
|
)
|
|
|
|
target_link_libraries(${COMPONENT_LIB}
|
|
PUBLIC
|
|
cardboy_backend_interface
|
|
)
|