Created
June 10, 2023 23:20
-
-
Save ji6czd/4fa20627afa02a5dee024d844c6c8072 to your computer and use it in GitHub Desktop.
Raspberry Pico SDK minimum CMakeList.txt
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.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