cmake_minimum_required(VERSION 3.13) # Per https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf p30 include(pico_sdk_import.cmake) project(tattlekey C CXX ASM) set(CMAKE_C_STANDARD 11) set(CMAKE_CXX_STANDARD 17) pico_sdk_init() add_executable(tattlekey blink.c button.c config.c net.c press.c tattlekey.c ) pico_enable_stdio_usb(tattlekey 1) pico_enable_stdio_uart(tattlekey 1) pico_add_extra_outputs(tattlekey) target_include_directories(tattlekey PRIVATE ${CMAKE_CURRENT_LIST_DIR} # Per https://stackoverflow.com/a/76988599 ${CMAKE_CURRENT_LIST_DIR}/.. ) target_link_libraries(tattlekey pico_stdlib pico_cyw43_arch_lwip_threadsafe_background ) install(TARGETS tattlekey) install(FILES build/tattlekey.uf2 TYPE DATA)