BUGS-P-0 A-1-i Under-dev Proto
This commit is contained in:
26
CMakeLists.txt
Normal file
26
CMakeLists.txt
Normal file
@@ -0,0 +1,26 @@
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
|
||||
# Include the SDK import helper we copied
|
||||
include(pico_sdk_import.cmake)
|
||||
|
||||
project(pico_dev C CXX ASM)
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
# Initialize the Pico hardware SDK routines
|
||||
pico_sdk_init()
|
||||
|
||||
# Tell the compiler which C file holds our code
|
||||
add_executable(pico_dev
|
||||
main.c
|
||||
)
|
||||
|
||||
# Link standard libraries and the hardware UART peripheral drivers
|
||||
target_link_libraries(pico_dev pico_stdlib hardware_uart pico_multicore)
|
||||
|
||||
# CRUCIAL: Enable standard printf() to route over the USB-C cable
|
||||
pico_enable_stdio_usb(pico_dev 1)
|
||||
pico_enable_stdio_uart(pico_dev 0)
|
||||
|
||||
# Instruct CMake to generate a drag-and-drop .uf2 file
|
||||
pico_add_extra_outputs(pico_dev)
|
||||
Reference in New Issue
Block a user