mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-21 11:30:01 +00:00
19 lines
657 B
CMake
19 lines
657 B
CMake
cmake_minimum_required(VERSION 3.13)
|
|
|
|
# If you will set board type here, do it BEFORE including the SDK
|
|
# set(PICO_BOARD pico2)
|
|
include(pico_sdk_import.cmake)
|
|
|
|
project(firmware)
|
|
pico_sdk_init()
|
|
|
|
add_executable(firmware main.c wifi.c mongoose/mongoose.c)
|
|
target_include_directories(firmware PRIVATE mongoose)
|
|
|
|
target_link_libraries(firmware hardware_pio pico_stdlib pico_rand hardware_flash pico_bootrom)
|
|
pico_add_extra_outputs(firmware) # create map/bin/hex file etc.
|
|
pico_enable_stdio_usb(firmware 1) # Route stdio to USB
|
|
|
|
# Prevent extreme optimization from breaking OTA
|
|
target_compile_options(firmware PRIVATE -fno-tree-loop-distribute-patterns)
|