]> git.scottworley.com Git - tattlekey/blame - client/CMakeLists.txt
client: get_press_due_for_resend()
[tattlekey] / client / CMakeLists.txt
CommitLineData
5ec2b60a
SW
1cmake_minimum_required(VERSION 3.13) # Per https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf p30
2include(pico_sdk_import.cmake)
3
4project(tattlekey C CXX ASM)
5
6set(CMAKE_C_STANDARD 11)
7set(CMAKE_CXX_STANDARD 17)
8pico_sdk_init()
9
dae35db7
SW
10add_executable(tattlekey
11 blink.c
d1521eda 12 button.c
fbc57595 13 config.c
1e0a316e 14 net.c
00ca9fa6 15 press.c
dae35db7
SW
16 tattlekey.c
17 )
5ec2b60a 18
b08e7156
SW
19pico_enable_stdio_usb(tattlekey 1)
20pico_enable_stdio_uart(tattlekey 1)
21
5ec2b60a
SW
22pico_add_extra_outputs(tattlekey)
23
b08e7156
SW
24target_include_directories(tattlekey PRIVATE
25 ${CMAKE_CURRENT_LIST_DIR}
26
27 # Per https://stackoverflow.com/a/76988599
28 ${CMAKE_CURRENT_LIST_DIR}/..
29 )
30
e2173399
SW
31target_link_libraries(tattlekey
32 pico_stdlib
b08e7156 33 pico_cyw43_arch_lwip_threadsafe_background
e2173399 34 )
5ec2b60a 35
661f51ad
SW
36install(TARGETS tattlekey)
37install(FILES build/tattlekey.uf2 TYPE DATA)