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