]> git.scottworley.com Git - tattlekey/blobdiff - client/CMakeLists.txt
client: Connect to wifi
[tattlekey] / client / CMakeLists.txt
index d07ff630922f778bac7a55e7f16eb62339a5bdde..2805ed0e5b524fc93767c9f4e0fd2409a6a7497a 100644 (file)
@@ -9,8 +9,22 @@ pico_sdk_init()
 
 add_executable(tattlekey tattlekey.c)
 
+pico_enable_stdio_usb(tattlekey 1)
+pico_enable_stdio_uart(tattlekey 1)
+
 pico_add_extra_outputs(tattlekey)
 
-target_link_libraries(tattlekey pico_stdlib)
+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_lwip_threadsafe_background
+  )
 
-install(TARGETS tattlekey RUNTIME LIBRARY ARCHIVE)
+install(TARGETS tattlekey)
+install(FILES build/tattlekey.uf2 TYPE DATA)