Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elktros/e321ac039b213dc1195e6591720b2b17 to your computer and use it in GitHub Desktop.
Save elktros/e321ac039b213dc1195e6591720b2b17 to your computer and use it in GitHub Desktop.
CMakeLists text file for Raspberry Pi Pico New Project.
cmake_minimum_required(VERSION 3.13)
include(pico_sdk_import.cmake)
project(myproject_test C CXX ASM)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
pico_sdk_init()
add_executable(myproject
myproject.c
)
target_link_libraries(myproject pico_stdlib)
pico_enable_stdio_usb(myproject 1)
pico_enable_stdio_uart(myproject 1)
pico_add_extra_outputs(myproject)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment