2022-03-26 12:52:14 -05:00
|
|
|
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(
|
2022-07-15 13:31:20 -05:00
|
|
|
autobar
|
|
|
|
autobar.c
|
2022-03-26 12:52:14 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
# pull in common dependencies
|
|
|
|
target_link_libraries(
|
2022-07-15 13:31:20 -05:00
|
|
|
autobar
|
2022-03-26 12:52:14 -05:00
|
|
|
pico_stdlib
|
2022-07-15 13:31:20 -05:00
|
|
|
# ${CMAKE_SOURCE_DIR}/rusty/target/thumbv6m-none-eabi/release/librusty.a
|
2022-03-26 12:52:14 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
# create map/bin/hex file etc.
|
2022-07-15 13:31:20 -05:00
|
|
|
pico_add_extra_outputs(autobar)
|