play/rp2040/sht30/CMakeLists.txt

15 lines
307 B
CMake
Raw Normal View History

2022-10-05 00:45:40 +00:00
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)