Art_deplacer_robot/CMakeLists.txt
2025-01-04 18:08:56 +01:00

37 lines
747 B
CMake

cmake_minimum_required(VERSION 3.13)
include(pico_sdk_import.cmake)
project(PAMI_Cours_temps C CXX ASM)
set(CMAKE_C_STNDARD 11)
set(CMAKE_CXX_STANDARD 17)
set(PICO_EXAMPLES_PATH ${PROJECT_SOURCE_DIR})
pico_sdk_init()
add_executable(PAMI_Cours_temps
main.c
Teleplot.c
Temps.c
)
target_include_directories(PAMI_Cours_temps PRIVATE ${CMAKE_CURRENT_LIST_DIR})
target_link_libraries(PAMI_Cours_temps
hardware_uart
pico_stdlib
pico_multicore
pico_cyw43_arch_lwip_poll
)
pico_enable_stdio_usb(PAMI_Cours_temps 1)
pico_enable_stdio_uart(PAMI_Cours_temps 1)
pico_add_extra_outputs(PAMI_Cours_temps)
add_custom_target(Flash
DEPENDS PAMI_Cours_temps
COMMAND sudo picotool load -f ${PROJECT_BINARY_DIR}/PAMI_Cours_temps.uf2
)