Wyatt J. Miller
f560b775b4
made cmake outputs a make file that has an autobar.c, not a blink.c this is for posterity, not to be confused by file naming
27 lines
519 B
CMake
27 lines
519 B
CMake
cmake_minimum_required(VERSION 3.12)
|
|
|
|
# Pull in SDK (must be before project)
|
|
include(pico_sdk_import.cmake)
|
|
|
|
project(pico_examples C CXX ASM)
|
|
set(CMAKE_C_STANDARD 11)
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
# Initialize the SDK
|
|
pico_sdk_init()
|
|
|
|
add_executable(
|
|
autobar
|
|
autobar.c
|
|
)
|
|
|
|
# pull in common dependencies
|
|
target_link_libraries(
|
|
autobar
|
|
pico_stdlib
|
|
# ${CMAKE_SOURCE_DIR}/rusty/target/thumbv6m-none-eabi/release/librusty.a
|
|
)
|
|
|
|
# create map/bin/hex file etc.
|
|
pico_add_extra_outputs(autobar)
|