40 lines
645 B
CMake
40 lines
645 B
CMake
cmake_minimum_required(VERSION 3.25.1)
|
|
include(pico_sdk_import.cmake)
|
|
include(pico_extras_import.cmake)
|
|
project(main CXX C ASM)
|
|
set(CMAKE_C_STANDARD 11)
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
pico_sdk_init()
|
|
|
|
|
|
|
|
add_executable(
|
|
main
|
|
EC800M.c
|
|
main.c
|
|
)
|
|
|
|
|
|
pico_enable_stdio_uart(main 1)
|
|
pico_enable_stdio_usb(main 1)
|
|
pico_add_extra_outputs(main)
|
|
|
|
target_include_directories(main PRIVATE
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
)
|
|
|
|
target_link_libraries(
|
|
main
|
|
pico_stdlib
|
|
pico_runtime
|
|
pico_multicore
|
|
hardware_sleep
|
|
hardware_rtc
|
|
hardware_i2c
|
|
hardware_uart
|
|
hardware_pwm
|
|
hardware_adc
|
|
hardware_pio
|
|
)
|
|
|