cmake_minimum_required(VERSION 3.10)
set(PICO_SDK_PATH "$ENV{PICO_SDK_PATH}")
set(CMAKE_C_FLAGS "-g -O0 -mthumb -mcpu=cortex-m0plus")
include(pico_sdk_import.cmake)
pico_sdk_init()
project(clacer C CXX ASM)
file(GLOB SOURCES "src/*.c")
add_executable(clacer ${SOURCES})
target_link_libraries(clacer pico_stdlib pico_time hardware_spi)
set_target_properties(clacer PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/build)
pico_add_extra_outputs(clacer)
