]>
Commit | Line | Data |
---|---|---|
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) | |
3 | ||
4 | project(tattlekey C CXX ASM) | |
5 | ||
6 | set(CMAKE_C_STANDARD 11) | |
7 | set(CMAKE_CXX_STANDARD 17) | |
8 | pico_sdk_init() | |
9 | ||
10 | add_executable(tattlekey | |
11 | blink.c | |
12 | button.c | |
13 | config.c | |
14 | net.c | |
15 | press.c | |
16 | tattlekey.c | |
17 | ) | |
18 | ||
19 | pico_enable_stdio_usb(tattlekey 1) | |
20 | pico_enable_stdio_uart(tattlekey 1) | |
21 | ||
22 | pico_add_extra_outputs(tattlekey) | |
23 | ||
24 | target_include_directories(tattlekey PRIVATE | |
25 | ${CMAKE_CURRENT_LIST_DIR} | |
26 | ||
27 | # Per https://stackoverflow.com/a/76988599 | |
28 | ${CMAKE_CURRENT_LIST_DIR}/.. | |
29 | ) | |
30 | ||
31 | target_link_libraries(tattlekey | |
32 | pico_stdlib | |
33 | pico_cyw43_arch_lwip_threadsafe_background | |
34 | ) | |
35 | ||
36 | install(TARGETS tattlekey) | |
37 | install(FILES build/tattlekey.uf2 TYPE DATA) |