]> git.scottworley.com Git - tattlekey/blob - client/CMakeLists.txt
ae972002a7de59e0c826e2fae33ebe1e510c2068
[tattlekey] / client / CMakeLists.txt
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 config.c
13 net.c
14 tattlekey.c
15 )
16
17 pico_enable_stdio_usb(tattlekey 1)
18 pico_enable_stdio_uart(tattlekey 1)
19
20 pico_add_extra_outputs(tattlekey)
21
22 target_include_directories(tattlekey PRIVATE
23 ${CMAKE_CURRENT_LIST_DIR}
24
25 # Per https://stackoverflow.com/a/76988599
26 ${CMAKE_CURRENT_LIST_DIR}/..
27 )
28
29 target_link_libraries(tattlekey
30 pico_stdlib
31 pico_cyw43_arch_lwip_threadsafe_background
32 )
33
34 install(TARGETS tattlekey)
35 install(FILES build/tattlekey.uf2 TYPE DATA)