Skip to content

Instantly share code, notes, and snippets.

@tm-sanjay
Created August 21, 2021 11:38
Show Gist options
  • Save tm-sanjay/c721b364a469cceef65ce43eb9cffa5b to your computer and use it in GitHub Desktop.
Save tm-sanjay/c721b364a469cceef65ce43eb9cffa5b to your computer and use it in GitHub Desktop.
Pi pico with C/C++ CMakeList.txt
cmake_minimum_required(VERSION 3.12)
include(pico_sdk_import.cmake)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
pico_sdk_init()
project(test)
add_executable(test blink.c)
# Pull in our pico_stdlib which pulls in commonly used features
target_link_libraries(blink pico_stdlib)
# create map/bin/hex file etc.
pico_add_extra_outputs(test)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment