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