compile works
This commit is contained in:
parent
0745a4fcc3
commit
1765ae4422
1 changed files with 5 additions and 4 deletions
|
@ -7,15 +7,15 @@ set(CMAKE_CXX_STANDARD 17)
|
||||||
|
|
||||||
# Initialise pico_sdk from installed location
|
# Initialise pico_sdk from installed location
|
||||||
# (note this can come from environment, CMake cache etc)
|
# (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")
|
set(PICO_BOARD pico CACHE STRING "Board type")
|
||||||
|
|
||||||
# Pull in Raspberry Pi Pico SDK (must be before project)
|
# Pull in Raspberry Pi Pico SDK (must be before project)
|
||||||
include(pico_sdk_import.cmake)
|
include(pico_sdk_import.cmake)
|
||||||
|
|
||||||
if (PICO_SDK_VERSION_STRING VERSION_LESS "1.4.0")
|
if (PICO_SDK_VERSION_STRING VERSION_LESS "1.5.0")
|
||||||
message(FATAL_ERROR "Raspberry Pi Pico SDK version 1.4.0 (or later) required. Your version is ${PICO_SDK_VERSION_STRING}")
|
message(FATAL_ERROR "Raspberry Pi Pico SDK version 1.5.0 (or later) required. Your version is ${PICO_SDK_VERSION_STRING}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
project(pico_keyer C CXX ASM)
|
project(pico_keyer C CXX ASM)
|
||||||
|
@ -35,7 +35,8 @@ pico_enable_stdio_usb(pico_keyer 0)
|
||||||
|
|
||||||
# Add the standard library to the build
|
# Add the standard library to the build
|
||||||
target_link_libraries(pico_keyer
|
target_link_libraries(pico_keyer
|
||||||
pico_stdlib)
|
hardware_flash
|
||||||
|
pico_stdlib)
|
||||||
|
|
||||||
# Add the standard include files to the build
|
# Add the standard include files to the build
|
||||||
target_include_directories(pico_keyer PRIVATE
|
target_include_directories(pico_keyer PRIVATE
|
||||||
|
|
Loading…
Reference in a new issue