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

20 lines
640 B
CMake
Raw Normal View History

2023-01-03 00:24:27 +08:00
cmake_minimum_required(VERSION 3.13)
include(pico-sdk/pico_sdk_init.cmake)
project(firmware)
2023-01-03 00:24:27 +08:00
pico_sdk_init()
add_executable(firmware main.c mongoose.c net.c packed_fs.c)
target_include_directories(firmware PUBLIC .)
2023-12-06 17:10:46 +08:00
target_link_libraries(firmware pico_stdlib hardware_spi pico_rand)
2023-03-01 05:18:26 +08:00
pico_add_extra_outputs(firmware) # create map/bin/hex file etc.
2023-01-03 00:24:27 +08:00
2023-12-10 20:17:54 +08:00
pico_enable_stdio_usb(firmware 0) # Route stdio
pico_enable_stdio_uart(firmware 1) # to the UART, for remote testing
2023-01-03 00:24:27 +08:00
2024-04-19 04:28:40 +08:00
# Mongoose build flags in mongoose_config.h
2023-05-30 05:38:49 +08:00
# Example build options
add_definitions(-DHTTP_URL="http://0.0.0.0/")
add_definitions(-DHTTPS_URL="https://0.0.0.0/")