]> git.scottworley.com Git - tattlekey/blobdiff - client/CMakeLists.txt
client: Send UDP packets
[tattlekey] / client / CMakeLists.txt
index 84361f433f6c6a8858701af21c0011d935c4128d..ae972002a7de59e0c826e2fae33ebe1e510c2068 100644 (file)
@@ -7,13 +7,29 @@ set(CMAKE_C_STANDARD 11)
 set(CMAKE_CXX_STANDARD 17)
 pico_sdk_init()
 
-add_executable(tattlekey tattlekey.c)
+add_executable(tattlekey
+  blink.c
+  config.c
+  net.c
+  tattlekey.c
+  )
+
+pico_enable_stdio_usb(tattlekey 1)
+pico_enable_stdio_uart(tattlekey 1)
 
 pico_add_extra_outputs(tattlekey)
 
+target_include_directories(tattlekey PRIVATE
+  ${CMAKE_CURRENT_LIST_DIR}
+
+  # Per https://stackoverflow.com/a/76988599
+  ${CMAKE_CURRENT_LIST_DIR}/..
+  )
+
 target_link_libraries(tattlekey
   pico_stdlib
-  pico_cyw43_arch_none
+  pico_cyw43_arch_lwip_threadsafe_background
   )
 
-install(TARGETS tattlekey RUNTIME LIBRARY ARCHIVE)
+install(TARGETS tattlekey)
+install(FILES build/tattlekey.uf2 TYPE DATA)