PowerTimer-Firmware/CMakeLists.txt

38 lines
718 B
CMake

cmake_minimum_required (VERSION 3.13)
include(pico_sdk_import.cmake)
project (zam_power_timer VERSION 0.1 LANGUAGES C CXX ASM)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
pico_sdk_init()
add_executable(${CMAKE_PROJECT_NAME}
src/main.c
src/sseg.c
src/sseg.h
src/buzzer.c
src/buzzer.h
src/buttons.c
src/buttons.h
src/pinout.h
src/sseg.pio
)
pico_generate_pio_header(zam_power_timer ${CMAKE_CURRENT_LIST_DIR}/src/sseg.pio)
pico_enable_stdio_usb(${CMAKE_PROJECT_NAME} 1)
pico_enable_stdio_uart(${CMAKE_PROJECT_NAME} 0)
pico_add_extra_outputs(${CMAKE_PROJECT_NAME})
target_link_libraries(${CMAKE_PROJECT_NAME}
pico_stdlib
hardware_pwm
hardware_timer
hardware_irq
hardware_pio
hardware_dma)