2022-12-27 12:58:56 +01:00
|
|
|
#set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
2022-12-27 12:53:41 +01:00
|
|
|
|
|
|
|
set(SOURCES
|
2022-12-27 12:58:56 +01:00
|
|
|
abfall.cpp
|
|
|
|
)
|
2022-12-27 12:53:41 +01:00
|
|
|
|
|
|
|
add_executable(${CMAKE_PROJECT_NAME} ${SOURCES})
|
|
|
|
|
|
|
|
pico_set_program_name(${CMAKE_PROJECT_NAME} "abfall")
|
|
|
|
pico_set_program_version(${CMAKE_PROJECT_NAME} ${PROJECT_VERSION})
|
|
|
|
|
|
|
|
# Add the standard include files to the build
|
|
|
|
target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/.. # for our common lwipopts or any other standard includes, if required
|
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties(${CMAKE_PROJECT_NAME}
|
|
|
|
PROPERTIES
|
|
|
|
CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
|
|
|
|
CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
|
|
|
|
CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
|
|
|
|
)
|
|
|
|
|
|
|
|
pico_enable_stdio_uart(${CMAKE_PROJECT_NAME} 1)
|
|
|
|
pico_enable_stdio_usb(${CMAKE_PROJECT_NAME} 0)
|
|
|
|
|
|
|
|
target_link_libraries(${CMAKE_PROJECT_NAME}
|
2022-12-27 12:58:56 +01:00
|
|
|
pico_stdlib
|
|
|
|
pico_cyw43_arch_lwip_threadsafe_background
|
2022-12-27 12:53:41 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
pico_add_extra_outputs(${CMAKE_PROJECT_NAME})
|