cmake_minimum_required(VERSION 3.13)

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

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

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

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