# What CMake to start at cmake_minimum_required( VERSION 3.31 ) set(CMAKE_C_STANDARD 11) set(CMAKE_CXX_STANDARD 17) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) #set(PICO_BOARD pico CACHE STRING "Board type") # Pull in SDK (must be before project) include( pico_sdk_import.cmake ) # Set the name and version of the project project(test C CXX ASM) # project(test VERSION 1.0.0 ) # Initialize the SDK pico_sdk_init() # the executable add_executable( node1 node1.c bme280.c pms5003.c ) pico_set_program_version(node1 "0.1") pico_set_program_name(node1 "node_one") # pull in common dependencies target_link_libraries( node1 pico_stdlib hardware_i2c) # create map/bin/hex file etc. pico_add_extra_outputs( node1 ) add_executable(wifi_scan wifi_scan.c) target_include_directories(wifi_scan PRIVATE ${CMAKE_CURRENT_LIST_DIR} ${CMAKE_CURRENT_LIST_DIR}/.. # for our common lwipopts ) target_link_libraries(wifi_scan pico_cyw43_arch_lwip_threadsafe_background pico_stdlib ) pico_add_extra_outputs(wifi_scan)