play/rp2040/sht30/CMakeLists.txt

15 lines
307 B
CMake

cmake_minimum_required(VERSION 3.12)
include($ENV{PICO_SDK_PATH}/pico_sdk_init.cmake)
set(CMAKE_C_STANDARD 11)
project(sht30)
pico_sdk_init()
add_executable(sht30
sht30.c
)
target_link_libraries(sht30 pico_stdlib hardware_i2c)
pico_enable_stdio_usb(sht30 1)
pico_add_extra_outputs(sht30)