master_clock/CMakeLists.txt
2026-02-19 23:32:34 -05:00

34 lines
706 B
CMake

cmake_minimum_required(VERSION 3.13)
# 1. Generate the map for your Neovim clangd linter
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Include the SDK's CMake entry point
include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake)
project(clock C CXX ASM)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
pico_sdk_init()
include_directories(include)
add_executable(clock
src/main.cpp
src/Gate.cpp
)
# Enable USB output (useful for later printf debugging)
pico_enable_stdio_usb(clock 1)
pico_enable_stdio_uart(clock 0)
# Pull in standard library and hardware abstraction
target_link_libraries(clock
pico_stdlib
hardware_gpio
hardware_i2c
)
# Create the .uf2 file
pico_add_extra_outputs(clock)