X-Git-Url: http://git.scottworley.com/tattlekey/blobdiff_plain/5ec2b60aca31cb3f8f0da44017885bc08b72a6b2..d1521eda56a4768dbf481aa6cf9e75c5a5a7e7f1:/client/CMakeLists.txt?ds=inline diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index d07ff63..7714c1e 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -7,10 +7,30 @@ set(CMAKE_C_STANDARD 11) set(CMAKE_CXX_STANDARD 17) pico_sdk_init() -add_executable(tattlekey tattlekey.c) +add_executable(tattlekey + blink.c + button.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_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)