cmake_minimum_required(VERSION 3.13) include(pico_sdk_import.cmake) project(PAMI_Cours_Moteurs 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_Moteurs main.c Moteurs.c Teleplot.c Temps.c ) target_include_directories(PAMI_Cours_Moteurs PRIVATE ${CMAKE_CURRENT_LIST_DIR}) target_link_libraries(PAMI_Cours_Moteurs hardware_uart hardware_pwm pico_stdlib pico_multicore pico_cyw43_arch_lwip_poll ) pico_enable_stdio_usb(PAMI_Cours_Moteurs 1) pico_enable_stdio_uart(PAMI_Cours_Moteurs 1) pico_add_extra_outputs(PAMI_Cours_Moteurs) add_custom_target(Flash DEPENDS PAMI_Cours_Moteurs COMMAND sudo picotool load -f ${PROJECT_BINARY_DIR}/PAMI_Cours_Moteurs.uf2 )