mongoose/examples/pico-sdk/pico-w-picosdk-baremetal-builtin/CMakeLists.txt

30 lines
621 B
CMake
Raw Normal View History

2024-09-11 21:56:52 +08:00
cmake_minimum_required(VERSION 3.13)
include(pico-sdk/pico_sdk_init.cmake)
project(firmware)
pico_sdk_init()
add_executable(firmware
driver_pico-w.c
main.c
mongoose.c
net.c
packed_fs.c
)
target_include_directories(firmware PUBLIC
.
)
2024-12-02 22:11:48 +08:00
target_link_libraries(firmware pico_stdlib pico_rand pico_cyw43_driver pico_cyw43_arch_none)
2024-09-11 21:56:52 +08:00
pico_add_extra_outputs(firmware) # create map/bin/hex file etc.
pico_enable_stdio_usb(firmware 1) # Route stdio
pico_enable_stdio_uart(firmware 0) # to USB
# Mongoose build flags in mongoose_config.h
# Example build options
add_definitions(-DHTTP_URL="http://0.0.0.0/")