-
-
Save IoTeacher/70b7185797dc5f26ca268ce370075e6b to your computer and use it in GitHub Desktop.
Raspberry Pi Pico C/C++ SDK Example CMake File
This file contains 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.13) | |
include(pico_sdk_import.cmake) | |
project(test_project C CXX ASM) | |
set(CMAKE_C_STANDARD 11) | |
set(CMAKE_CXX_STANDARD 17) | |
pico_sdk_init() | |
add_executable(blink | |
blink.c | |
) | |
target_include_directories(blink PRIVATE | |
${CMAKE_CURRENT_LIST_DIR} | |
) | |
# Uncomment if you want to flash your board via picotool. | |
# pico_enable_stdio_usb(blink 1) | |
pico_add_extra_outputs(blink) | |
target_link_libraries(blink | |
pico_stdlib | |
# Uncomment when using Pico W | |
# pico_cyw43_arch_none | |
) | |
target_link_libraries(pico_stdlib) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment