cmake_minimum_required(VERSION 3.13)

# Define the INTERFACE library target for the Lost + Found BMP280 driver
add_library(lf-bmp280 INTERFACE)

# Expose the source files from src/
target_sources(lf-bmp280 INTERFACE
    ${CMAKE_CURRENT_LIST_DIR}/src/lf_bmp280.c
)

# Expose the public header file search path from include/
target_include_directories(lf-bmp280 INTERFACE
    ${CMAKE_CURRENT_LIST_DIR}/include
)

# Link hardware dependencies from the Pico C SDK
target_link_libraries(lf-bmp280 INTERFACE
    pico_stdlib
    hardware_i2c
)
