summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: ad5fba974c77e2efd52d7ed4f58d350036ae6e3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cmake_minimum_required(VERSION 3.13)

set(PICO_SDK_PATH "${CMAKE_SOURCE_DIR}/3rd-party/pico-sdk")
include(pico_sdk_import.cmake)

project(sbc_harness)

pico_sdk_init()

add_executable(hello_world hello_world.c)
target_link_libraries(hello_world pico_stdlib)
pico_enable_stdio_usb(hello_world 1)
pico_enable_stdio_uart(hello_world 0)
pico_enable_stdio_semihosting(hello_world 0)
pico_enable_stdio_rtt(hello_world 0)
pico_add_extra_outputs(hello_world) # create map/bin/hex/uf2 file in addition to ELF.
pico_set_program_url(hello_world "https://git.lukeshu.com/sbc-harness")