Skip to content

Instantly share code, notes, and snippets.

@ji6czd
Created June 10, 2023 23:20
Show Gist options
  • Save ji6czd/4fa20627afa02a5dee024d844c6c8072 to your computer and use it in GitHub Desktop.
Save ji6czd/4fa20627afa02a5dee024d844c6c8072 to your computer and use it in GitHub Desktop.
Raspberry Pico SDK minimum CMakeList.txt
cmake_minimum_required(VERSION 3.12)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake)
project(project1 C CXX ASM)
pico_sdk_init()
add_executable(test test.c)
target_link_libraries(test pico_stdlib)
pico_enable_stdio_usb(test 1)
pico_enable_stdio_uart(test 0)
pico_add_extra_outputs(test)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment