logicanalyzer/Firmware/LogicAnalyzer/CMakeLists.txt

58 lines
1.5 KiB
CMake
Raw Normal View History

2022-07-03 14:07:25 +00:00
# Generated Cmake Pico project file
cmake_minimum_required(VERSION 3.13)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
# Pull in Raspberry Pi Pico SDK (must be before project)
include(pico_sdk_import.cmake)
project(LogicAnalyzer C CXX ASM)
# Initialise the Raspberry Pi Pico SDK
pico_sdk_init()
# Add executable. Default name is the project name, version 0.1
2023-01-31 22:12:43 +00:00
# add_executable(LogicAnalyzer LogicAnalyzer.c )
FILE(GLOB CSources *.c)
ADD_EXECUTABLE(LogicAnalyzer ${CSources})
2022-07-03 14:07:25 +00:00
# Create C header file with the name <pio program>.pio.h
pico_generate_pio_header(${PROJECT_NAME}
${CMAKE_CURRENT_LIST_DIR}/LogicAnalyzer.pio
)
pico_set_program_name(LogicAnalyzer "LogicAnalyzer")
2024-05-05 11:17:44 +00:00
pico_set_program_version(LogicAnalyzer "5.1")
2023-01-31 22:12:43 +00:00
2022-07-03 14:07:25 +00:00
pico_enable_stdio_uart(LogicAnalyzer 0)
pico_enable_stdio_usb(LogicAnalyzer 1)
2023-01-31 22:12:43 +00:00
# Configure the correct cyw library based on what this is built for
# Regular pico: empty
# Pico W without WiFi support: pico_cyw43_arch_none
# Pico W with WiFi support: pico_cyw43_arch_lwip_poll
2024-05-12 09:39:45 +00:00
set (CYW_LIB pico_cyw43_arch_lwip_poll)
2023-01-31 22:12:43 +00:00
# set (CYW_LIB pico_cyw43_arch_none)
2022-07-03 14:07:25 +00:00
# Add any user requested libraries
target_link_libraries(LogicAnalyzer
pico_stdlib
hardware_dma
hardware_pio
hardware_clocks
2023-01-31 22:12:43 +00:00
hardware_flash
2024-05-05 11:17:44 +00:00
hardware_adc
2022-07-03 14:07:25 +00:00
pico_multicore
pico_base_headers
2023-01-31 22:12:43 +00:00
pico_multicore
${CYW_LIB}
2022-07-03 14:07:25 +00:00
)
pico_add_extra_outputs(LogicAnalyzer)
2023-01-31 22:12:43 +00:00
target_include_directories(LogicAnalyzer PRIVATE ${CMAKE_CURRENT_LIST_DIR} )