cmake_minimum_required(VERSION 3.13)

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

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

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

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