PAMI_2024/CMakeLists.txt

59 lines
1.2 KiB
CMake
Raw Permalink Normal View History

2023-10-22 16:48:14 +00:00
cmake_minimum_required(VERSION 3.13)
include(pico_sdk_import.cmake)
project(Mon_Projet 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(Mon_Projet
2024-04-28 20:35:20 +00:00
Asser_Position.c
2024-04-27 19:21:41 +00:00
Asser_Moteurs.c
2024-04-28 20:12:47 +00:00
Commande_vitesse.c
2024-04-28 19:58:09 +00:00
Geometrie.c
i2c_maitre.c
2024-04-27 19:21:41 +00:00
Moteurs.c
2024-04-28 19:58:09 +00:00
Localisation.c
2023-10-22 16:48:14 +00:00
main.c
QEI.c
2024-04-27 19:21:41 +00:00
Temps.c
Trajectoire_bezier.c
Trajectoire_circulaire.c
Trajectoire_droite.c
Trajectoire.c
Trajet.c
VL53L8CX_ULD_API/src/vl53l8cx_api.c
VL53L8CX_ULD_API/src/vl53l8cx_plugin_detection_thresholds.c
VL53L8CX_ULD_API/src/vl53l8cx_plugin_motion_indicator.c
VL53L8CX_ULD_API/src/vl53l8cx_plugin_xtalk.c
VL53L8_2024.c
Platform/platform.c
2023-10-22 16:48:14 +00:00
)
2024-03-15 22:45:05 +00:00
pico_generate_pio_header(Mon_Projet ${CMAKE_CURRENT_LIST_DIR}/quadrature_encoder.pio)
target_include_directories(Mon_Projet PRIVATE VL53L8CX_ULD_API/inc/)
2023-10-22 16:48:14 +00:00
target_link_libraries(Mon_Projet
2024-04-28 19:03:01 +00:00
hardware_adc
2023-10-22 16:48:14 +00:00
hardware_i2c
2024-03-22 21:30:37 +00:00
hardware_pwm
2024-03-15 22:45:05 +00:00
hardware_pio
2023-10-22 16:48:14 +00:00
pico_stdlib
pico_multicore
)
pico_enable_stdio_usb(Mon_Projet 1)
pico_enable_stdio_uart(Mon_Projet 1)
pico_add_extra_outputs(Mon_Projet)
add_custom_target(Flash
DEPENDS Mon_Projet
COMMAND sudo picotool load -f ${PROJECT_BINARY_DIR}/Mon_Projet.uf2
)