cmake_minimum_required(VERSION 3.13) include(pico_sdk_import.cmake) project(Detection2023 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(Detection2023 main.c vl53l1_platform.c VL53L1X_api.c VL53L1X_calibration.c SelectionCapteur.c ) target_link_libraries(Detection2023 hardware_i2c hardware_uart pico_stdlib ) pico_enable_stdio_usb(Detection2023 1) pico_enable_stdio_uart(Detection2023 0) pico_add_extra_outputs(Detection2023) add_custom_target(Flash DEPENDS Detection2023 COMMAND sudo picotool load -f ${PROJECT_BINARY_DIR}/Detection2023.uf2 )