-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
45 lines (39 loc) · 948 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
cmake_minimum_required(VERSION 3.13)
include(pico_sdk_import.cmake)
project(test_project C CXX ASM)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
pico_sdk_init()
add_executable(test
Holonome2023.c
APDS_9960.c
Asser_Moteurs.c
Asser_Position.c
Commande_vitesse.c
QEI.c
gyro.c
gyro_L3GD20H.c
gyro_ADXRS453.c
i2c_maitre.c
Localisation.c
Moteurs.c
Robot_config.c
Temps.c
Test.c
Trajet.c
Trajectoire.c
Trajectoire_bezier.c
Trajectoire_circulaire.c
Trajectoire_droite.c
Servomoteur.c
spi_nb.c)
pico_generate_pio_header(test ${CMAKE_CURRENT_LIST_DIR}/quadrature_encoder.pio)
add_definitions(-DGYRO_ADXRS453)
pico_enable_stdio_usb(test 1)
pico_enable_stdio_uart(test 1)
pico_add_extra_outputs(test)
target_link_libraries(test pico_stdlib hardware_i2c hardware_timer hardware_spi hardware_pwm hardware_structs hardware_pio pico_multicore)
add_custom_target(Flash
DEPENDS test
COMMAND sudo picotool load -f ${PROJECT_BINARY_DIR}/test.uf2
)