Art_deplacer_robot/CMakeLists.txt

37 lines
699 B
CMake
Raw Normal View History

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