Created
August 21, 2021 11:38
-
-
Save tm-sanjay/c721b364a469cceef65ce43eb9cffa5b to your computer and use it in GitHub Desktop.
Pi pico with C/C++ CMakeList.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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