]>
Commit | Line | Data |
---|---|---|
5ec2b60a SW |
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 | ||
dae35db7 SW |
10 | add_executable(tattlekey |
11 | blink.c | |
12 | tattlekey.c | |
13 | ) | |
5ec2b60a | 14 | |
b08e7156 SW |
15 | pico_enable_stdio_usb(tattlekey 1) |
16 | pico_enable_stdio_uart(tattlekey 1) | |
17 | ||
5ec2b60a SW |
18 | pico_add_extra_outputs(tattlekey) |
19 | ||
b08e7156 SW |
20 | target_include_directories(tattlekey PRIVATE |
21 | ${CMAKE_CURRENT_LIST_DIR} | |
22 | ||
23 | # Per https://stackoverflow.com/a/76988599 | |
24 | ${CMAKE_CURRENT_LIST_DIR}/.. | |
25 | ) | |
26 | ||
e2173399 SW |
27 | target_link_libraries(tattlekey |
28 | pico_stdlib | |
b08e7156 | 29 | pico_cyw43_arch_lwip_threadsafe_background |
e2173399 | 30 | ) |
5ec2b60a | 31 | |
661f51ad SW |
32 | install(TARGETS tattlekey) |
33 | install(FILES build/tattlekey.uf2 TYPE DATA) |