# == DO NOT EDIT THE FOLLOWING LINES for the Raspberry Pi Pico VS Code Extension to work == if(WIN32) set(USERHOME $ENV{USERPROFILE}) else() set(USERHOME $ENV{HOME}) endif() set(sdkVersion 2.1.0) set(toolchainVersion 13_3_Rel1) set(picotoolVersion 2.1.0) set(picoVscode ${USERHOME}/.pico-sdk/cmake/pico-vscode.cmake) if (EXISTS ${picoVscode}) include(${picoVscode}) endif() # ==================================================================================== set(PICO_BOARD pico2 CACHE STRING "Board type") # cmake version cmake_minimum_required(VERSION 3.13) # include the sdk.cmake file include(pico_sdk_import.cmake) # give the project a name (anything you want) project(message-project) # initialize the sdk pico_sdk_init() ####### # name anything you want add_executable(message_test) # must match with executable name and source file names target_sources(message_test PRIVATE start_message_example.c ) # must match with executable name target_link_libraries(message_test PRIVATE pico_stdlib pico_bootsel_via_double_reset hardware_pio hardware_dma hardware_adc hardware_sync hardware_irq hardware_spi pico_multicore) # must match with executable name pico_add_extra_outputs(message_test) add_compile_options(-O3)