24 lines
638 B
CMake
Raw Normal View History

2023-01-02 16:24:27 +00:00
cmake_minimum_required(VERSION 3.13)
include(pico-sdk/pico_sdk_init.cmake)
project(firmware)
2023-01-02 16:24:27 +00:00
pico_sdk_init()
add_executable(firmware
main.c
../../../mongoose.c
../../device-dashboard/net.c
../../device-dashboard/packed_fs.c)
target_include_directories(firmware PUBLIC ../../..)
target_link_libraries(firmware pico_stdlib hardware_spi)
pico_add_extra_outputs(firmware)
2023-01-02 16:24:27 +00:00
# Enable USB output. Comment out in order to use UART
pico_enable_stdio_usb(firmware 0)
pico_enable_stdio_uart(firmware 1)
2023-01-02 16:24:27 +00:00
# Mongoose build flags
add_definitions(-DMG_ENABLE_MIP=1)
add_definitions(-DMG_ENABLE_PACKED_FS=1)
add_definitions(-DMG_ENABLE_FILE=0)