compile works

This commit is contained in:
Martin Brodbeck 2024-02-06 20:51:02 +01:00
parent 0745a4fcc3
commit 1765ae4422

View file

@ -7,15 +7,15 @@ set(CMAKE_CXX_STANDARD 17)
# Initialise pico_sdk from installed location
# (note this can come from environment, CMake cache etc)
set(PICO_SDK_PATH "/home/brodbemn/pico/pico-sdk")
#set(PICO_SDK_PATH "/home/brodbemn/pico/pico-sdk")
set(PICO_BOARD pico CACHE STRING "Board type")
# Pull in Raspberry Pi Pico SDK (must be before project)
include(pico_sdk_import.cmake)
if (PICO_SDK_VERSION_STRING VERSION_LESS "1.4.0")
message(FATAL_ERROR "Raspberry Pi Pico SDK version 1.4.0 (or later) required. Your version is ${PICO_SDK_VERSION_STRING}")
if (PICO_SDK_VERSION_STRING VERSION_LESS "1.5.0")
message(FATAL_ERROR "Raspberry Pi Pico SDK version 1.5.0 (or later) required. Your version is ${PICO_SDK_VERSION_STRING}")
endif()
project(pico_keyer C CXX ASM)
@ -35,6 +35,7 @@ pico_enable_stdio_usb(pico_keyer 0)
# Add the standard library to the build
target_link_libraries(pico_keyer
hardware_flash
pico_stdlib)
# Add the standard include files to the build