1 cmake_minimum_required(VERSION 3.13) # Per https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf p30
2 include(pico_sdk_import.cmake)
4 project(tattlekey C CXX ASM)
6 set(CMAKE_C_STANDARD 11)
7 set(CMAKE_CXX_STANDARD 17)
10 add_executable(tattlekey tattlekey.c)
12 pico_enable_stdio_usb(tattlekey 1)
13 pico_enable_stdio_uart(tattlekey 1)
15 pico_add_extra_outputs(tattlekey)
17 target_include_directories(tattlekey PRIVATE
18 ${CMAKE_CURRENT_LIST_DIR}
20 # Per https://stackoverflow.com/a/76988599
21 ${CMAKE_CURRENT_LIST_DIR}/..
24 target_link_libraries(tattlekey
26 pico_cyw43_arch_lwip_threadsafe_background
29 install(TARGETS tattlekey)
30 install(FILES build/tattlekey.uf2 TYPE DATA)