-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
27 lines (20 loc) · 940 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
cmake_minimum_required(VERSION 3.12)
include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake)
project(Newt_Scope C CXX ASM)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
pico_sdk_init()
add_executable(${PROJECT_NAME} main.c mcp41010.c calibration_memory.c ring_buffer.c)
pico_add_extra_outputs(${PROJECT_NAME})
pico_enable_stdio_usb(${PROJECT_NAME} 1)
pico_enable_stdio_uart(${PROJECT_NAME} 0)
pico_generate_pio_header(${PROJECT_NAME} ../sampler.pio)
target_link_libraries(${PROJECT_NAME} pico_stdlib)
target_link_libraries(${PROJECT_NAME} hardware_pio)
target_link_libraries(${PROJECT_NAME} hardware_clocks)
target_link_libraries(${PROJECT_NAME} hardware_dma)
target_link_libraries(${PROJECT_NAME} hardware_spi)
target_link_libraries(${PROJECT_NAME} hardware_pwm)
target_link_libraries(${PROJECT_NAME} hardware_gpio)
target_link_libraries(${PROJECT_NAME} hardware_irq)
target_link_libraries(${PROJECT_NAME} hardware_flash)