2024-02-07 07:08:07 +00:00
|
|
|
cmake_minimum_required(VERSION 3.13)
|
2024-02-14 02:01:59 +00:00
|
|
|
set(PROGRAM_NAME pico_bmc)
|
|
|
|
set(PICO_BOARD pico_w)
|
2024-02-07 07:08:07 +00:00
|
|
|
include(pico_sdk_import.cmake)
|
2024-02-14 02:01:59 +00:00
|
|
|
project(pico_bmc)
|
2024-02-07 07:08:07 +00:00
|
|
|
pico_sdk_init()
|
2024-02-14 02:01:59 +00:00
|
|
|
add_executable(${PROGRAM_NAME}
|
|
|
|
main.c
|
2024-02-07 07:08:07 +00:00
|
|
|
)
|
2024-02-14 02:01:59 +00:00
|
|
|
target_include_directories(${PROGRAM_NAME} PRIVATE
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}
|
2024-02-07 07:08:07 +00:00
|
|
|
)
|
2024-02-14 02:01:59 +00:00
|
|
|
target_link_libraries(${PROGRAM_NAME}
|
|
|
|
pico_cyw43_arch_lwip_threadsafe_background
|
|
|
|
pico_lwip_http
|
|
|
|
pico_stdlib
|
|
|
|
hardware_adc
|
|
|
|
)
|
|
|
|
pico_enable_stdio_usb(${PROGRAM_NAME} TRUE)
|
|
|
|
pico_enable_stdio_uart(${PROGRAM_NAME} FALSE)
|
|
|
|
pico_add_extra_outputs(${PROGRAM_NAME})
|