您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

CMakeLists.txt 657B

123456789101112131415161718192021222324252627282930313233343536
  1. cmake_minimum_required(VERSION 3.13)
  2. include(pico_sdk_import.cmake)
  3. project(picowota C CXX ASM)
  4. set(CMAKE_C_STANDARD 11)
  5. set(CMAKE_CXX_STANDARD 17)
  6. pico_sdk_init()
  7. add_executable(picowota
  8. main.c
  9. creds.c
  10. tcp_comm.c
  11. )
  12. pico_enable_stdio_usb(picowota 1)
  13. pico_add_extra_outputs(picowota)
  14. set_target_properties(picowota PROPERTIES COMPILE_FLAGS "-Wall -Os")
  15. target_include_directories(picowota PRIVATE ${CMAKE_CURRENT_LIST_DIR})
  16. add_subdirectory(picowota_reboot)
  17. target_link_libraries(picowota
  18. cmsis_core
  19. hardware_dma
  20. hardware_flash
  21. hardware_resets
  22. hardware_structs
  23. pico_cyw43_arch_lwip_poll
  24. pico_stdlib
  25. pico_sync
  26. pico_util
  27. picowota_reboot
  28. )