code cleanup
This commit is contained in:
parent
2df245d4ba
commit
5a32ce8bb9
2 changed files with 5 additions and 30 deletions
|
@ -18,34 +18,10 @@ 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}")
|
message(FATAL_ERROR "Raspberry Pi Pico SDK version 1.4.0 (or later) required. Your version is ${PICO_SDK_VERSION_STRING}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
#project(abfall C CXX ASM)
|
|
||||||
project(abfall VERSION "1.0.0" LANGUAGES C CXX ASM)
|
project(abfall VERSION "1.0.0" LANGUAGES C CXX ASM)
|
||||||
|
|
||||||
|
|
||||||
# Initialise the Raspberry Pi Pico SDK
|
# Initialise the Raspberry Pi Pico SDK
|
||||||
pico_sdk_init()
|
pico_sdk_init()
|
||||||
|
|
||||||
|
|
||||||
# Add executable. Default name is the project name, version 0.1
|
|
||||||
|
|
||||||
# add_executable(abfall abfall.cpp )
|
|
||||||
|
|
||||||
# Add the standard library to the build
|
|
||||||
#target_link_libraries(abfall
|
|
||||||
# pico_stdlib)
|
|
||||||
|
|
||||||
# Add the standard include files to the build
|
|
||||||
#target_include_directories(abfall PRIVATE
|
|
||||||
# ${CMAKE_CURRENT_LIST_DIR}
|
|
||||||
# ${CMAKE_CURRENT_LIST_DIR}/.. # for our common lwipopts or any other standard includes, if required
|
|
||||||
#)
|
|
||||||
|
|
||||||
# Add any user requested libraries
|
|
||||||
#target_link_libraries(abfall
|
|
||||||
# pico_cyw43_arch_lwip_threadsafe_background
|
|
||||||
# )
|
|
||||||
|
|
||||||
#pico_add_extra_outputs(abfall)
|
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
#set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
|
|
||||||
set(SOURCES
|
set(SOURCES
|
||||||
abfall.cpp)
|
abfall.cpp
|
||||||
|
)
|
||||||
|
|
||||||
add_executable(${CMAKE_PROJECT_NAME} ${SOURCES})
|
add_executable(${CMAKE_PROJECT_NAME} ${SOURCES})
|
||||||
|
|
||||||
|
@ -24,8 +25,6 @@ set_target_properties(${CMAKE_PROJECT_NAME}
|
||||||
pico_enable_stdio_uart(${CMAKE_PROJECT_NAME} 1)
|
pico_enable_stdio_uart(${CMAKE_PROJECT_NAME} 1)
|
||||||
pico_enable_stdio_usb(${CMAKE_PROJECT_NAME} 0)
|
pico_enable_stdio_usb(${CMAKE_PROJECT_NAME} 0)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
target_link_libraries(${CMAKE_PROJECT_NAME}
|
target_link_libraries(${CMAKE_PROJECT_NAME}
|
||||||
pico_stdlib
|
pico_stdlib
|
||||||
pico_cyw43_arch_lwip_threadsafe_background
|
pico_cyw43_arch_lwip_threadsafe_background
|
||||||
|
|
Loading…
Reference in a new issue