From 7c30fe0be98a3028964d437f5c31cc968fbf9755 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sun, 15 Sep 2024 23:16:00 -0600 Subject: wip --- CMakeLists.txt | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index ad5fba9..f229d17 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,11 +7,15 @@ 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") +add_executable(sbc_harness) +target_sources(sbc_harness PUBLIC + main.c +) +target_include_directories(sbc_harness PUBLIC ${CMAKE_CURRENT_LIST_DIR}) # So TinyUSB can find tusb_config.h +target_link_libraries(sbc_harness pico_stdlib) +pico_enable_stdio_usb(sbc_harness 0) +pico_enable_stdio_uart(sbc_harness 1) +pico_enable_stdio_semihosting(sbc_harness 0) +pico_enable_stdio_rtt(sbc_harness 0) +pico_add_extra_outputs(sbc_harness) # create map/bin/hex/uf2 file in addition to ELF. +pico_set_program_url(sbc_harness "https://git.lukeshu.com/sbc-harness") -- cgit v1.2.3-2-g168b