shrooms-server/shroom-controller/main/CMakeLists.txt

21 lines
500 B
CMake

idf_component_register(
SRCS "main.c"
INCLUDE_DIRS "include"
REQUIRES
esp_driver_gpio
esp_wifi
nvs_flash
libssh2_esp
)
# TODO maybe add the commands to generate these?
# xtensa-esp-elf-objcopy -I binary -O elf32-xtensa-le shrooms-key shrooms-key.o
# xtensa-esp-elf-objcopy -I binary -O elf32-xtensa-le shrooms-key.pub shrooms-key.pub.o
target_link_libraries(
${COMPONENT_LIB}
${CMAKE_CURRENT_SOURCE_DIR}/shrooms-key.o
${CMAKE_CURRENT_SOURCE_DIR}/shrooms-key.pub.o
)