RPiPico-Holonome2023/CMakeLists.txt

23 lines
528 B
CMake
Raw Normal View History

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
test.c
spi_nb.c
2022-09-23 20:09:40 +00:00
gyro.c
Temps.c
Servomoteur.c
2022-10-16 08:26:44 +00:00
gyro_L3GD20H.c
)
pico_enable_stdio_usb(test 1)
pico_enable_stdio_uart(test 1)
pico_add_extra_outputs(test)
target_link_libraries(test pico_stdlib hardware_spi hardware_pwm hardware_structs)
add_custom_target(Flash
DEPENDS test
COMMAND sudo picotool load ${PROJECT_BINARY_DIR}/test.uf2
)